UBI: use is_power_of_2()
commit7753f1692f53d82b4cc08084462b0fd2803c1f04
authorVignesh Babu <vignesh.babu@wipro.com>
Tue, 12 Jun 2007 05:01:05 +0000 (12 10:31 +0530)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:55:26 +0000 (18 16:55 +0300)
tree1af69abb56aaa61f4b149ce044c3b214d581db6d
parentd7f0c4dc31f1297a613f1e61a7d682dc9a5e859a
UBI: use is_power_of_2()

Replacing (n & (n-1)) in the context of power of 2 checks
with is_power_of_2

Signed-off-by: Vignesh Babu <vignesh.babu@wipro.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c