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>
This commit is contained in:
parent
940e698c90
commit
675a7da857
|
@ -256,9 +256,6 @@ static int sdricoh_blockio(struct sdricoh_host *host, int read,
|
|||
}
|
||||
}
|
||||
|
||||
if (len)
|
||||
return -EIO;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue