aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2014-04-28 10:14:17 -0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-05-05 10:31:04 +0300
commitb4a2417a181a219f925e479d0c24cc344279d870 (patch)
tree5783319536b3d30db39ace6385416fca7f622039
parent5923077649ca167991a24ca05bd285fdf6fa1a06 (diff)
nandtest: Remove redundant check
This commit removes a redundant 'len' check, which is already performed just after the pread call. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r--nandtest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/nandtest.c b/nandtest.c
index 1876bb2..fd78b95 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -107,8 +107,6 @@ int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf)
printf("\nECC failed at %08x\n", (unsigned) ofs);
oldstats.failed = newstats.failed;
}
- if (len < meminfo.erasesize)
- exit(1);
printf("\r%08x: checking...", (unsigned)ofs);
fflush(stdout);