summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/flash_eraseall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c
index 0411c5a..3e0c06f 100644
--- a/miscutils/flash_eraseall.c
+++ b/miscutils/flash_eraseall.c
@@ -142,7 +142,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv)
* types e.g. NOR
*/
if (errno == EOPNOTSUPP) {
- flags = ~BBTEST;
+ flags &= ~BBTEST;
if (flags & IS_NAND)
bb_error_msg_and_die("bad block check not available");
} else {