From da0200a1e50b3b4335757086a7426495eaacb31b Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Mon, 15 Oct 2012 14:21:45 +0200 Subject: [PATCH] nanddump: use the right operator of logic AND Signed-off-by: Baruch Siach Signed-off-by: Denys Vlasenko --- miscutils/nandwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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)); } -- 2.25.1