staging/rdma/hfi1: diag.c use BIT macros
authorIra Weiny <ira.weiny@intel.com>
Wed, 2 Dec 2015 05:43:26 +0000 (00:43 -0500)
committerGreg 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

index e4cd333bba83cf9190c4163f4a0647bcafcfdad4..3e08165104ba147bf1cc2f6f0a07b96c22bf5e50 100644 (file)
@@ -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;