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>
This commit is contained in:
Ira Weiny 2015-12-02 00:43:26 -05:00 committed by Greg Kroah-Hartman
parent f085292250
commit 799d904bf8
1 changed files with 2 additions and 2 deletions

View 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;