[PATCH] nandwrite: Remove redundant 'autoplace' check
Shinya Kuribayashi
shinya.kuribayashi.px at renesas.com
Fri Sep 24 05:22:53 EDT 2010
We're already in 'if (autoplace) { }' block at ths moment.
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px at renesas.com>
---
Along with Mike's nandwrite patches, I'd like to toss out a trivial
one, too ;-)
nandwrite.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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");
--
1.7.2.3
--
Shinya Kuribayashi
Renesas Electronics
More information about the linux-mtd
mailing list