]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Tue, 17 Nov 2015 20:06:40 +0000 (22:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 23:40:18 +0000 (15:40 -0800)
commit71872e9cc2af4dca1903ebc57daa15f08c795d86
treebd8adf94bf6fa96760e6bc2fb040615cb06af2c2
parentd2d32738ded3825a6608e0d34e276c30c96e63b2
staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

Replaces IS_PO2 by is_power_of_2. It is more accurate to use
is_power_of_2 since it returns 1 for numbers that are powers
of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are
powers of 2.

Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/hash.c