From: Ezequiel Garcia Date: Mon, 28 Apr 2014 13:14:17 +0000 (-0300) Subject: nandtest: Remove redundant check X-Git-Tag: v1.5.2~26 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b4a2417a181a219f925e479d0c24cc344279d870;p=mtd-utils.git 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 Signed-off-by: Artem Bityutskiy --- 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);