]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: Replace a bit shift by a use of BIT.
authorArushi Singhal <arushisinghal19971997@gmail.com>
Wed, 22 Mar 2017 15:53:33 +0000 (21:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Mar 2017 12:24:49 +0000 (14:24 +0200)
commit331e432cf5cb231212ab66126ec2fc14bffc846a
tree9e0babc3e03c0b41654d6e4cec665ffded21cca3
parentd69548e1e7bfb11ddfc88b0b0ca2cb3e778a9168
staging: lustre: Replace a bit shift by a use of BIT.

This patch replaces bit shifting on 1 with the BIT(x) macro.
This was done with coccinelle:
@@
constant c;
@@

-1 << c
+BIT(c)

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c
drivers/staging/lustre/lnet/lnet/lib-ptl.c
drivers/staging/lustre/lustre/llite/lproc_llite.c