diff options
-rw-r--r-- | miscutils/nandwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index c636a5aa2..a93433457 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
@@ -162,7 +162,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv) | |||
162 | tmp = next_good_eraseblock(fd, &meminfo, blockstart); | 162 | tmp = next_good_eraseblock(fd, &meminfo, blockstart); |
163 | if (tmp != blockstart) { | 163 | if (tmp != blockstart) { |
164 | /* bad block(s), advance mtdoffset */ | 164 | /* bad block(s), advance mtdoffset */ |
165 | if (IS_NANDDUMP & !(opts & OPT_b)) { | 165 | if (IS_NANDDUMP && !(opts & OPT_b)) { |
166 | int bad_len = MIN(tmp, end_addr) - mtdoffset; | 166 | int bad_len = MIN(tmp, end_addr) - mtdoffset; |
167 | dump_bad(&meminfo, bad_len, !(opts & OPT_o)); | 167 | dump_bad(&meminfo, bad_len, !(opts & OPT_o)); |
168 | } | 168 | } |