]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
UBI: avoid unnecessary division operations
authorKyungmin Park <kyungmin.park@samsung.com>
Thu, 22 May 2008 01:32:18 +0000 (10:32 +0900)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Jul 2008 10:32:54 +0000 (13:32 +0300)
commitcadb40ccc16a26a738f1cbc963e35b21edd93e79
treeacd1d5d02ecda07634f1c49432ddb39cd9f5d7fd
parenta0fd1efd488092951f310fdb777b8a540cf84dcb
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>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/kapi.c
drivers/mtd/ubi/misc.c
drivers/mtd/ubi/vmt.c
drivers/mtd/ubi/vtbl.c
drivers/mtd/ubi/wl.c