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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -256,9 +256,6 @@ static int sdricoh_blockio(struct sdricoh_host *host, int read,
		}
	}

	if (len)
		return -EIO;

	return 0;
}