spi: cadence_qspi: Do not return unset error code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 11:34:39 +0000 (12:34 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 16:27:40 +0000 (10:27 -0600)
commit1a5129d3dafda90914972ce78db20f7eb6bc9fde
tree6e02b1a12d96c48dc26cc1829e1b1c91b4579e68
parent0ed45794ae9fa3bd8adb1f2d85875f93d94249f8
spi: cadence_qspi: Do not return unset error code

In spi_calibration if the low range fails to calibrate then the code
attempted to return the variable err but this has not been set in this
case. Instead just return -EIO.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/spi/cadence_qspi.c