Commit 50b51dac authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman
Browse files

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: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7ed06a3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);