summaryrefslogtreecommitdiffstats
path: root/commands/ubiformat.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ubiformat.c')
-rw-r--r--commands/ubiformat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/ubiformat.c b/commands/ubiformat.c
index 8516e112c3..f9c50b7936 100644
--- a/commands/ubiformat.c
+++ b/commands/ubiformat.c
@@ -503,9 +503,8 @@ static int format(const struct mtd_dev_info *mtd,
write_size, eb);
if (errno != EIO) {
- if (!args.subpage_size != mtd->min_io_size)
- normsg("may be sub-page size is "
- "incorrect?");
+ if (args.subpage_size != mtd->min_io_size)
+ normsg("may be sub-page size is incorrect?");
goto out_free;
}