]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: core: Replace bit shifting with BIT macro
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Tue, 2 Apr 2019 14:17:28 +0000 (19:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Apr 2019 17:57:11 +0000 (19:57 +0200)
Challenge suggested by coccinelle.
Prefer using BIT and replace bit shifting with the BIT(x) macro.

Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index 6cec67a63da48b3b7059c0f17eeb3cddf4b01b38..c6ae29b3e599bbad1754003ffa43bfafbc198470 100644 (file)
@@ -3955,7 +3955,7 @@ void issue_action_BA(struct adapter *padapter, unsigned char *raddr, unsigned ch
                                /*  A-MSDU NOT Supported */
                                BA_para_set = 0;
                                /*  immediate Block Ack */
-                               BA_para_set |= (1 << 1) & IEEE80211_ADDBA_PARAM_POLICY_MASK;
+                               BA_para_set |= BIT(1) & IEEE80211_ADDBA_PARAM_POLICY_MASK;
                                /*  TID */
                                BA_para_set |= (status << 2) & IEEE80211_ADDBA_PARAM_TID_MASK;
                                /*  max buffer size is 8 MSDU */