summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2015-12-02 00:43:26 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-21 13:53:37 -0800
commit799d904bf84c23531cf85c1a505aaed0e264babe (patch)
tree9189a998f7f8a68f422fd397988c51c855a10a59 /drivers
parentf0852922507c386257891e694315a56c2ba09224 (diff)
staging/rdma/hfi1: diag.c use BIT macros
Use BIT macros rather than shifts. Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rdma/hfi1/diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/diag.c b/drivers/staging/rdma/hfi1/diag.c
index e4cd333bba83..3e08165104ba 100644
--- 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;