flash_eraseall.c: fix vda's breakage

This commit is contained in:
Denis Vlasenko 2009-02-24 16:47:03 +00:00
parent 30e3df3817
commit e261bba6a5

View 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 {