From: Ira Weiny Date: Wed, 2 Dec 2015 05:43:26 +0000 (-0500) Subject: staging/rdma/hfi1: diag.c use BIT macros X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=799d904bf84c23531cf85c1a505aaed0e264babe;p=openwrt%2Fstaging%2Fblogic.git staging/rdma/hfi1: diag.c use BIT macros Use BIT macros rather than shifts. Signed-off-by: Ira Weiny Signed-off-by: Greg Kroah-Hartman --- 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;