diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/flash_eraseall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c index 0411c5a88..3e0c06ffd 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) | |||
| 142 | * types e.g. NOR | 142 | * types e.g. NOR |
| 143 | */ | 143 | */ |
| 144 | if (errno == EOPNOTSUPP) { | 144 | if (errno == EOPNOTSUPP) { |
| 145 | flags = ~BBTEST; | 145 | flags &= ~BBTEST; |
| 146 | if (flags & IS_NAND) | 146 | if (flags & IS_NAND) |
| 147 | bb_error_msg_and_die("bad block check not available"); | 147 | bb_error_msg_and_die("bad block check not available"); |
| 148 | } else { | 148 | } else { |
