projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c021dc
)
Staging: lustre: libcfs: Prefer using the BIT macro
author
Shraddha Barke
<
[email protected]
>
Thu, 10 Sep 2015 16:30:31 +0000
(22:00 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 13 Sep 2015 01:24:57 +0000
(18:24 -0700)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/lustre/lustre/libcfs/hash.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/libcfs/hash.c
b/drivers/staging/lustre/lustre/libcfs/hash.c
index 08f0b48c97e421f6063cf248e0a61f44a5eaadf2..286641bb1b418cafe7df2c0b2958a372dad6a53a 100644
(file)
--- 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 {