]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rockchip-sfc: Fix assigned but never used return error codes
authorColin Ian King <colin.king@canonical.com>
Wed, 18 Aug 2021 14:10:51 +0000 (15:10 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 23 Aug 2021 15:41:08 +0000 (16:41 +0100)
commit00667d05f26a89730a19a37e7d70680bc1a4fda3
tree174a8c1de21d57e24c5d3d2faf345b0cc624734d
parente39b4eb4ad0a6a90526fc576122bb38f3d463b6f
spi: rockchip-sfc: Fix assigned but never used return error codes

Currently there are two places where the error return variable ret is
being assigned -ETIMEDOUT on timeout errors and this value is not
being returned. Fix this by returning -ETIMEDOUT rather than redundantly
assiging it to ret.

Addresses-Coverity: ("Unused value")
Fixes: adab32ee6d33 ("spi: rockchip-sfc: add rockchip serial flash controller")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210818141051.36320-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip-sfc.c