mtd: utilize `mtd_is_*()' functions
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
This commit is contained in:

committed by
Artem Bityutskiy

parent
7387ce7732
commit
d57f40544a
@@ -443,7 +443,7 @@ retry:
|
||||
if (err == UBI_IO_BITFLIPS) {
|
||||
scrub = 1;
|
||||
err = 0;
|
||||
} else if (err == -EBADMSG) {
|
||||
} else if (mtd_is_eccerr(err)) {
|
||||
if (vol->vol_type == UBI_DYNAMIC_VOLUME)
|
||||
goto out_unlock;
|
||||
scrub = 1;
|
||||
|
Reference in New Issue
Block a user