UBI: ubi_eba_read_leb: Remove in vain variable assignment
There is no need to set err, it will be overwritten in any case later at: if (scrub) err = ubi_wl_scrub_peb(ubi, pnum); Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
Родитель
4b1a43eab1
Коммит
170505f58f
|
@ -441,10 +441,9 @@ retry:
|
|||
|
||||
err = ubi_io_read_data(ubi, buf, pnum, offset, len);
|
||||
if (err) {
|
||||
if (err == UBI_IO_BITFLIPS) {
|
||||
if (err == UBI_IO_BITFLIPS)
|
||||
scrub = 1;
|
||||
err = 0;
|
||||
} else if (mtd_is_eccerr(err)) {
|
||||
else if (mtd_is_eccerr(err)) {
|
||||
if (vol->vol_type == UBI_DYNAMIC_VOLUME)
|
||||
goto out_unlock;
|
||||
scrub = 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче