diff options
author | Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> | 2014-04-28 10:14:17 -0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-05-05 10:31:04 +0300 |
commit | b4a2417a181a219f925e479d0c24cc344279d870 (patch) | |
tree | 5783319536b3d30db39ace6385416fca7f622039 /nandtest.c | |
parent | 5923077649ca167991a24ca05bd285fdf6fa1a06 (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>
Diffstat (limited to 'nandtest.c')
-rw-r--r-- | nandtest.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |