mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
158132c9ab
commit
7cdb996ee4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue