staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_UPDATE_...
authorFabio Aiuto <fabioaiuto83@gmail.com>
Tue, 16 Mar 2021 15:30:56 +0000 (16:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Mar 2021 09:19:44 +0000 (10:19 +0100)
remove conditional code blocks checked by unused
CONFIG_UPDATE_INDICATE_SEQ_WHILE_PROCESS_ADDBA_REQ

cleaning required in TODO file:

find and remove code blocks guarded by never set CONFIG_FOO defines

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/ae8f1ff89a3642449b1d2f9951001b0a3ef01b91.1615907632.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_wlan_util.c

index 80afc78..776fd83 100644 (file)
@@ -1809,15 +1809,7 @@ void process_addba_req(struct adapter *padapter, u8 *paddba_req, u8 *addr)
 
                preorder_ctrl = &psta->recvreorder_ctrl[tid];
 
-               #ifdef CONFIG_UPDATE_INDICATE_SEQ_WHILE_PROCESS_ADDBA_REQ
-               preorder_ctrl->indicate_seq = start_seq;
-               #ifdef DBG_RX_SEQ
-               DBG_871X("DBG_RX_SEQ %s:%d IndicateSeq: %d, start_seq: %d\n", __func__, __LINE__,
-                       preorder_ctrl->indicate_seq, start_seq);
-               #endif
-               #else
                preorder_ctrl->indicate_seq = 0xffff;
-               #endif
 
                preorder_ctrl->enable = pmlmeinfo->accept_addba_req;
        }