flash_eraseall.c: fix vda's breakage
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 24 Feb 2009 16:47:03 +0000 (16:47 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 24 Feb 2009 16:47:03 +0000 (16:47 -0000)
miscutils/flash_eraseall.c

index 0411c5a888308f4c8b20941189fd1cd781de3e0c..3e0c06ffd8b4f1c93a3f05ade42f978d6c2e2f32 100644 (file)
@@ -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 {