Explorar o código

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>
Colin Ian King %!s(int64=8) %!d(string=hai) anos
pai
achega
675a7da857
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      drivers/mmc/host/sdricoh_cs.c

+ 0 - 3
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;
 }