]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: rtl8723bs: Remove rtw_btcoex_Handler()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 1 Jul 2019 09:18:11 +0000 (14:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 16:34:08 +0000 (18:34 +0200)
Remove function rtw_btcoex_Handler as it does nothing except call
hal_btcoex_Handler.
Modify call site accordingly.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190701091817.12759-4-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_btcoex.c
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/include/rtw_btcoex.h

index d1da058fb4c977aa1050f656b18016e12742c49a..9a6e0cb9f1cc2f134a49fa7bd1a60920f0efd5fd 100644 (file)
@@ -58,11 +58,6 @@ u8 rtw_btcoex_IsBtDisabled(struct adapter *padapter)
        return hal_btcoex_IsBtDisabled(padapter);
 }
 
-void rtw_btcoex_Handler(struct adapter *padapter)
-{
-       hal_btcoex_Handler(padapter);
-}
-
 s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter)
 {
        s32 coexctrl;
index 47d31a3b2e84f736e83bf305a91615d96343f058..77d22f403b52e17528907cecff4269b2bb012f58 100644 (file)
@@ -1440,7 +1440,7 @@ static void dynamic_chk_wk_hdl(struct adapter *padapter)
        /*  */
        /*  BT-Coexist */
        /*  */
-       rtw_btcoex_Handler(padapter);
+       hal_btcoex_Handler(padapter);
 
 
        /* always call rtw_ps_processor() at last one. */
index 903940cc0b16d492a1a6b300075b4230ee96b52f..73864262f9bccc1ca05e08d096323e036b2159b1 100644 (file)
@@ -21,7 +21,6 @@ void rtw_btcoex_MediaStatusNotify(struct adapter *, u8 mediaStatus);
 void rtw_btcoex_BtInfoNotify(struct adapter *, u8 length, u8 *tmpBuf);
 void rtw_btcoex_HaltNotify(struct adapter *);
 u8 rtw_btcoex_IsBtDisabled(struct adapter *);
-void rtw_btcoex_Handler(struct adapter *);
 s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *);
 u8 rtw_btcoex_IsBtControlLps(struct adapter *);
 void rtw_btcoex_SetBTCoexist(struct adapter *, u8 bBtExist);