From: Shinya Kuribayashi Date: Fri, 24 Sep 2010 09:22:53 +0000 (+0900) Subject: nandwrite: Remove redundant 'autoplace' check X-Git-Tag: v1.4.2~58 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6edaa0c971aab663cda573ded5013b3b998ee5d4;p=mtd-utils.git 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 --- 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");