Browse Source

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 8 years ago
parent
commit
675a7da857
1 changed files with 0 additions and 3 deletions
  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;
 	return 0;
 }
 }