From: Chaehyun Lim Date: Wed, 16 Sep 2015 11:11:26 +0000 (+0900) Subject: staging: wilc1000: wilc_wlan.c: use BIT(x) macro X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=50b51dac4a4f26b815289d6f879eac9b77e786c1;p=openwrt%2Fstaging%2Fblogic.git staging: wilc1000: wilc_wlan.c: use BIT(x) macro Remove bit shift macro that is custom defined, then replace BIT(x) macro. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 22310cc6c953..47c743b0c1e5 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -2160,7 +2160,6 @@ _fail_: } -#define BIT31 (1 << 31) u16 Set_machw_change_vir_if(bool bValue) { u16 ret; @@ -2174,9 +2173,9 @@ u16 Set_machw_change_vir_if(bool bValue) } if (bValue) - reg |= (BIT31); + reg |= BIT(31); else - reg &= ~(BIT31); + reg &= ~BIT(31); ret = (&g_wlan)->hif_func.hif_write_reg(WILC_CHANGING_VIR_IF, reg);