diff options
-rw-r--r-- | drivers/mtd/ubi/eba.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 0e11671dadc4..2402d3b50171 100644 --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c | |||
@@ -441,10 +441,9 @@ retry: | |||
441 | 441 | ||
442 | err = ubi_io_read_data(ubi, buf, pnum, offset, len); | 442 | err = ubi_io_read_data(ubi, buf, pnum, offset, len); |
443 | if (err) { | 443 | if (err) { |
444 | if (err == UBI_IO_BITFLIPS) { | 444 | if (err == UBI_IO_BITFLIPS) |
445 | scrub = 1; | 445 | scrub = 1; |
446 | err = 0; | 446 | else if (mtd_is_eccerr(err)) { |
447 | } else if (mtd_is_eccerr(err)) { | ||
448 | if (vol->vol_type == UBI_DYNAMIC_VOLUME) | 447 | if (vol->vol_type == UBI_DYNAMIC_VOLUME) |
449 | goto out_unlock; | 448 | goto out_unlock; |
450 | scrub = 1; | 449 | scrub = 1; |