From: Colin Ian King Date: Tue, 9 May 2017 15:45:04 +0000 (+0100) Subject: mmc: sdricoh_cs: remove redundant check if len is non-zero X-Git-Tag: v4.13-rc1~179^2~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=675a7da857146338d047d1a63247bb48e7d5fed5;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdricoh_cs.c b/drivers/mmc/host/sdricoh_cs.c index 5ff26ab..70cb00a 100644 --- a/drivers/mmc/host/sdricoh_cs.c +++ b/drivers/mmc/host/sdricoh_cs.c @@ -256,9 +256,6 @@ static int sdricoh_blockio(struct sdricoh_host *host, int read, } } - if (len) - return -EIO; - return 0; }