]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
is_power_of_2: kernel/kfifo.c
authorvignesh babu <vignesh.babu@wipro.com>
Mon, 16 Jul 2007 06:41:34 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:50 +0000 (09:05 -0700)
commitf84d5a76c50d9752cdec64a6e536ee3901b267f6
tree3de21bf763be7a70a0c32f6d68d3c9ef8d2fc00f
parentcf99abace7e07dd8491e7093a9a9ef11d48838ed
is_power_of_2: kernel/kfifo.c

Replace (n & (n-1)) with is_power_of_2()

Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Acked-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kfifo.c