From 6edaa0c971aab663cda573ded5013b3b998ee5d4 Mon Sep 17 00:00:00 2001 From: Shinya Kuribayashi Date: Fri, 24 Sep 2010 18:22:53 +0900 Subject: nandwrite: Remove redundant 'autoplace' check We're already in 'if (autoplace) { }' block at ths moment. Signed-off-by: Shinya Kuribayashi Signed-off-by: Artem Bityutskiy --- nandwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nandwrite.c') diff --git a/nandwrite.c b/nandwrite.c index 8fe8875..9eb2004 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -331,7 +331,7 @@ int main(int argc, char * const argv[]) } // autoplace ECC ? - if (autoplace && (old_oobinfo.useecc != MTD_NANDECC_AUTOPLACE)) { + if (old_oobinfo.useecc != MTD_NANDECC_AUTOPLACE) { if (ioctl (fd, MEMSETOOBSEL, &autoplace_oobinfo) != 0) { perror ("MEMSETOOBSEL"); -- cgit v1.2.3