diff options
author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-09-10 16:30:31 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-13 01:24:57 (GMT) |
commit | 4e6aa99b87c3cd9e2487b275a7c47b37bee33fb5 (patch) | |
tree | 968a16a35f98e8620a7e9d2e1283d5e78900c483 | |
parent | 4c021dc0b8722365e9aee06d7a2213b5d93075c7 (diff) | |
download | linux-4e6aa99b87c3cd9e2487b275a7c47b37bee33fb5.tar.xz |
Staging: lustre: libcfs: Prefer using the BIT macro
This patch replaces bit shifting on 1 with the BIT(x) macro
This was done with coccinelle:
@@ int g; @@
-(1 << g)
+BIT(g)
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lustre/libcfs/hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c index 08f0b48..286641b 100644 --- a/drivers/staging/lustre/lustre/libcfs/hash.c +++ b/drivers/staging/lustre/lustre/libcfs/hash.c @@ -588,13 +588,13 @@ EXPORT_SYMBOL(cfs_hash_bd_move_locked); enum { /** always set, for sanity (avoid ZERO intent) */ - CFS_HS_LOOKUP_MASK_FIND = 1 << 0, + CFS_HS_LOOKUP_MASK_FIND = BIT(0), /** return entry with a ref */ - CFS_HS_LOOKUP_MASK_REF = 1 << 1, + CFS_HS_LOOKUP_MASK_REF = BIT(1), /** add entry if not existing */ - CFS_HS_LOOKUP_MASK_ADD = 1 << 2, + CFS_HS_LOOKUP_MASK_ADD = BIT(2), /** delete entry, ignore other masks */ - CFS_HS_LOOKUP_MASK_DEL = 1 << 3, + CFS_HS_LOOKUP_MASK_DEL = BIT(3), }; typedef enum cfs_hash_lookup_intent { |