diff options
| author | Ira Weiny <ira.weiny@intel.com> | 2015-12-02 08:43:26 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-22 00:53:37 +0300 |
| commit | 799d904bf84c23531cf85c1a505aaed0e264babe (patch) | |
| tree | 9189a998f7f8a68f422fd397988c51c855a10a59 | |
| parent | f0852922507c386257891e694315a56c2ba09224 (diff) | |
| download | linux-799d904bf84c23531cf85c1a505aaed0e264babe.tar.xz | |
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>
| -rw-r--r-- | drivers/staging/rdma/hfi1/diag.c | 4 |
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; |
