Преглед на файлове

UBI: do not print message about corruptes PEBs if we have none of them

Currently UBI prints

UBI: corrupted PEBs will be formatted

even if there are not corrupted PEBs. Fix this.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Artem Bityutskiy преди 15 години
родител
ревизия
7cdb996ee4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      drivers/mtd/ubi/scan.c

+ 1 - 1
drivers/mtd/ubi/scan.c

@@ -964,7 +964,7 @@ static int check_what_we_have(struct ubi_device *ubi, struct ubi_scan_info *si)
 		}
 	}
 
-	if (si->corr_peb_count >= 0)
+	if (si->corr_peb_count > 0)
 		ubi_msg("corrupted PEBs will be formatted");
 	return 0;
 }