]> 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)
commite69222d2a917585115e79130928a2b90d0245455
tree9e0babc3e03c0b41654d6e4cec665ffded21cca3
parentf3aa3805919d7c41d5bd17d9c2c96f21e1f64527
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