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:
Colin Ian King 2017-05-09 16:45:04 +01:00 committed by Ulf Hansson
parent 940e698c90
commit 675a7da857
1 changed files with 0 additions and 3 deletions

View File

@ -256,9 +256,6 @@ static int sdricoh_blockio(struct sdricoh_host *host, int read,
}
}
if (len)
return -EIO;
return 0;
}