Skip to contentSkip to conversation

nandwrite: Remove redundant 'autoplace' check

PATCH In review Shinya Kuribayashi 2 participants 2 messages Sep 24, 2010 – Sep 25, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nandwrite: Remove redundant 'autoplace' check

We're already in 'if (autoplace) { }' block at ths moment.

---

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
index 8fe8875..9eb2004 100644
@@ -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