remove msh_function.patch. msh is deprecated
[oweals/busybox.git] / miscutils / flash_eraseall.c
index 0411c5a888308f4c8b20941189fd1cd781de3e0c..4f3e94dc123643ca60590370495bf2e81751bf51 100644 (file)
@@ -97,7 +97,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv)
                                if (clmlen > 8)
                                        clmlen = 8;
                                if (clmlen == 0)
-                                       bb_error_msg_and_die("Autoplacement selected and no empty space in oob");
+                                       bb_error_msg_and_die("autoplacement selected and no empty space in oob");
                        } else {
                                /* Legacy mode */
                                switch (meminfo.oobsize) {
@@ -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 {