aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/ubi/wl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index 40f838d54b0f..2709dc02fc24 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -1517,7 +1517,7 @@ int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force)
1517 mutex_unlock(&ubi->buf_mutex); 1517 mutex_unlock(&ubi->buf_mutex);
1518 } 1518 }
1519 1519
1520 if (err == UBI_IO_BITFLIPS || force) { 1520 if (force || err == UBI_IO_BITFLIPS) {
1521 /* 1521 /*
1522 * Okay, bit flip happened, let's figure out what we can do. 1522 * Okay, bit flip happened, let's figure out what we can do.
1523 */ 1523 */