OSDN Git Service

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)
commit08d6ccf39bfb752fdef465f73e6fc7417259af31
tree9e0babc3e03c0b41654d6e4cec665ffded21cca3
parent5c143123321cd30553528e92ef7353f8488a461d
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