summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorBaruch Siach2012-10-15 14:21:45 +0200
committerDenys Vlasenko2012-10-15 14:21:45 +0200
commitda0200a1e50b3b4335757086a7426495eaacb31b (patch)
tree1377f3f0119b1c8d9df0157f425c4ec0895f9478 /miscutils
parenteab343e7e1e5331df833aa69f14584e4a6c738f1 (diff)
downloadbusybox-da0200a1e50b3b4335757086a7426495eaacb31b.zip
busybox-da0200a1e50b3b4335757086a7426495eaacb31b.tar.gz
nanddump: use the right operator of logic AND
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/nandwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c
index c636a5a..a934334 100644
--- a/miscutils/nandwrite.c
+++ b/miscutils/nandwrite.c
@@ -162,7 +162,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv)
tmp = next_good_eraseblock(fd, &meminfo, blockstart);
if (tmp != blockstart) {
/* bad block(s), advance mtdoffset */
- if (IS_NANDDUMP & !(opts & OPT_b)) {
+ if (IS_NANDDUMP && !(opts & OPT_b)) {
int bad_len = MIN(tmp, end_addr) - mtdoffset;
dump_bad(&meminfo, bad_len, !(opts & OPT_o));
}