aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/wl.c
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2008-05-21 21:32:18 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-07-24 06:32:54 -0400
commitcadb40ccc16a26a738f1cbc963e35b21edd93e79 (patch)
treeacd1d5d02ecda07634f1c49432ddb39cd9f5d7fd /drivers/mtd/ubi/wl.c
parenta0fd1efd488092951f310fdb777b8a540cf84dcb (diff)
UBI: avoid unnecessary division operations
UBI already checks that @min io size is the power of 2 at io_init. It is save to use bit operations then. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
-rw-r--r--drivers/mtd/ubi/wl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index a471a491f0ab..cc8fe2934d2b 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -1368,7 +1368,7 @@ int ubi_thread(void *u)
1368 int err; 1368 int err;
1369 1369
1370 if (kthread_should_stop()) 1370 if (kthread_should_stop())
1371 goto out; 1371 break;
1372 1372
1373 if (try_to_freeze()) 1373 if (try_to_freeze())
1374 continue; 1374 continue;
@@ -1403,7 +1403,6 @@ int ubi_thread(void *u)
1403 cond_resched(); 1403 cond_resched();
1404 } 1404 }
1405 1405
1406out:
1407 dbg_wl("background thread \"%s\" is killed", ubi->bgt_name); 1406 dbg_wl("background thread \"%s\" is killed", ubi->bgt_name);
1408 return 0; 1407 return 0;
1409} 1408}