summaryrefslogtreecommitdiff
path: root/nandwrite.c
diff options
context:
space:
mode:
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>2010-09-24 18:22:53 +0900
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-25 13:56:04 +0300
commit6edaa0c971aab663cda573ded5013b3b998ee5d4 (patch)
tree35a771de13282b2b6df4b8c6187336e375588512 /nandwrite.c
parente6a4af6694f213311bd07c27ccf21c2193740f32 (diff)
nandwrite: Remove redundant 'autoplace' check
We're already in 'if (autoplace) { }' block at ths moment. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'nandwrite.c')
-rw-r--r--nandwrite.c2
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");