nandwrite: Remove redundant 'autoplace' check
PATCH 1/1 nandwrite: Remove redundant 'autoplace' check
We're already in 'if (autoplace) { }' block at ths moment.
Signed-off-by Shinya Kuribayashi <[email protected]>
---
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(-)
nandwrite.c +1 -1
@@ -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" );
Signature · 4 lines
1.7.2.3 -- Shinya Kuribayashi Renesas Electronics
Quoted 4 lines · Shinya Kuribayashi
We're already in 'if (autoplace) { }' block at ths moment.
Signed-off-by Shinya Kuribayashi <[email protected]>---
Pushed, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Битюцкий Артём)