staging: wilc1000: wilc_wlan.c: use BIT(x) macro
authorChaehyun Lim <chaehyun.lim@gmail.com>
Wed, 16 Sep 2015 11:11:26 +0000 (20:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2015 04:46:01 +0000 (21:46 -0700)
Remove bit shift macro that is custom defined, then replace BIT(x)
macro.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index 22310cc6c9535695822b88b9c43ae75ce0b4f92a..47c743b0c1e53b0ec672450f979846ad362f8c46 100644 (file)
@@ -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);