mtd: utilize `mtd_is_*()' functions
[deliverable/linux.git] / drivers / mtd / ubi / vtbl.c
index 4b50a3029b8467817c582eb6488007cfa3fdfd46..9ad18da1891de31d2e792de57ede91626764e431 100644 (file)
@@ -423,7 +423,7 @@ static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi,
 
                err = ubi_io_read_data(ubi, leb[seb->lnum], seb->pnum, 0,
                                       ubi->vtbl_size);
-               if (err == UBI_IO_BITFLIPS || err == -EBADMSG)
+               if (err == UBI_IO_BITFLIPS || mtd_is_eccerr(err))
                        /*
                         * Scrub the PEB later. Note, -EBADMSG indicates an
                         * uncorrectable ECC error, but we have our own CRC and
This page took 0.024602 seconds and 5 git commands to generate.