projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab343e
)
nanddump: use the right operator of logic AND
author
Baruch Siach
<baruch@tkos.co.il>
Mon, 15 Oct 2012 12:21:45 +0000
(14:21 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 15 Oct 2012 12:21:45 +0000
(14:21 +0200)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/nandwrite.c
patch
|
blob
|
history
diff --git
a/miscutils/nandwrite.c
b/miscutils/nandwrite.c
index c636a5aa205c8d40fa268f5e885f21661e4d5c9b..a9343345711383042f6db5a97742d0e3437ab36b 100644
(file)
--- 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));
}