Commit 675a7da8 authored by Colin Ian King's avatar Colin Ian King Committed by Ulf Hansson

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 940e698c
...@@ -256,9 +256,6 @@ static int sdricoh_blockio(struct sdricoh_host *host, int read, ...@@ -256,9 +256,6 @@ static int sdricoh_blockio(struct sdricoh_host *host, int read,
} }
} }
if (len)
return -EIO;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment