mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +08:00
staging: rtl8723bs: core: Prefer using the BIT Macro.
Replace bit shifting on 1 with the BIT(x) macro. Issue found using coccinelle. Signed-off-by: Vatsala Narang <vatsalanarang@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3e2e9cf9ee
commit
e52d8d0d42
@ -1981,7 +1981,7 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra
|
||||
if (status == 0) {
|
||||
/* successful */
|
||||
DBG_871X("agg_enable for TID =%d\n", tid);
|
||||
psta->htpriv.agg_enable_bitmap |= 1 << tid;
|
||||
psta->htpriv.agg_enable_bitmap |= BIT(tid);
|
||||
psta->htpriv.candidate_tid_bitmap &= ~BIT(tid);
|
||||
} else {
|
||||
psta->htpriv.agg_enable_bitmap &= ~BIT(tid);
|
||||
@ -1999,8 +1999,10 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra
|
||||
|
||||
case RTW_WLAN_ACTION_DELBA: /* DELBA */
|
||||
if ((frame_body[3] & BIT(3)) == 0) {
|
||||
psta->htpriv.agg_enable_bitmap &= ~(1 << ((frame_body[3] >> 4) & 0xf));
|
||||
psta->htpriv.candidate_tid_bitmap &= ~(1 << ((frame_body[3] >> 4) & 0xf));
|
||||
psta->htpriv.agg_enable_bitmap &=
|
||||
~BIT((frame_body[3] >> 4) & 0xf);
|
||||
psta->htpriv.candidate_tid_bitmap &=
|
||||
~BIT((frame_body[3] >> 4) & 0xf);
|
||||
|
||||
/* reason_code = frame_body[4] | (frame_body[5] << 8); */
|
||||
reason_code = RTW_GET_LE16(&frame_body[4]);
|
||||
|
Loading…
Reference in New Issue
Block a user