diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-07-30 09:31:38 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-02 00:21:19 -0400 |
commit | 7cdb996ee4d04b5bb2cd544b14e8eb91cfd7fe64 (patch) | |
tree | a533532fd99fb4445727344d8656586deb5a8094 /drivers/mtd/ubi | |
parent | 158132c9abbccce802def10e5ffaf044b266a6e1 (diff) |
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>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 2 |
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 | } |