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:
f085292
)
staging/rdma/hfi1: diag.c use BIT macros
author
Ira Weiny
<ira.weiny@intel.com>
Wed, 2 Dec 2015 05:43:26 +0000
(
00:43
-0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:53:37 +0000
(13:53 -0800)
Use BIT macros rather than shifts.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/diag.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rdma/hfi1/diag.c
b/drivers/staging/rdma/hfi1/diag.c
index e4cd333bba83cf9190c4163f4a0647bcafcfdad4..3e08165104ba147bf1cc2f6f0a07b96c22bf5e50 100644
(file)
--- a/
drivers/staging/rdma/hfi1/diag.c
+++ b/
drivers/staging/rdma/hfi1/diag.c
@@
-78,8
+78,8
@@
hfi1_cdbg(SNOOP, fmt, ##__VA_ARGS__)
/* Snoop option mask */
-#define SNOOP_DROP_SEND
(1 <<
0)
-#define SNOOP_USE_METADATA
(1 <<
1)
+#define SNOOP_DROP_SEND
BIT(
0)
+#define SNOOP_USE_METADATA
BIT(
1)
static u8 snoop_flags;