]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdricoh_cs: remove redundant check if len is non-zero
authorColin Ian King <colin.king@canonical.com>
Tue, 9 May 2017 15:45:04 +0000 (16:45 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:08 +0000 (10:30 +0200)
commit9c37dd47c734d31cb0e29dffed85d9442ea3557d
tree0ff138fece55a73b23d9c5195cee2d72608c9056
parentde494fbc6354690a2c953b4779f5c7b617dcc4a2
mmc: sdricoh_cs: remove redundant check if len is non-zero

At the end of either of the read or write loops len is always zero
and hence the non-zero check on len and return of -EIO is redundant
and can be removed.

Detected by CoverityScan, CID#114293 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdricoh_cs.c