aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r--drivers/mtd/ubi/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index a86c04821368..372a15ac9995 100644
--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -964,7 +964,7 @@ static int check_what_we_have(struct ubi_device *ubi, struct ubi_scan_info *si)
964 } 964 }
965 } 965 }
966 966
967 if (si->corr_peb_count >= 0) 967 if (si->corr_peb_count > 0)
968 ubi_msg("corrupted PEBs will be formatted"); 968 ubi_msg("corrupted PEBs will be formatted");
969 return 0; 969 return 0;
970} 970}