Message ID | 1398690859-11494-2-git-send-email-ezequiel@vanguardiasur.com.ar |
---|---|
State | Accepted |
Commit | b4a2417a181a219f925e479d0c24cc344279d870 |
Headers | show |
On Mon, 2014-04-28 at 10:14 -0300, Ezequiel Garcia wrote: > 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> This looks straight-forward, let me apply it right away, thanks!
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);
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> --- nandtest.c | 2 -- 1 file changed, 2 deletions(-)