]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: Remove rtw_btcoex_SpecialPacketNotify()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 1 Jul 2019 06:23:01 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 08:50:22 +0000 (10:50 +0200)
Remove function rtw_btcoex_SpecialPacketNotify as all it does is call
hal_btcoex_SpecialPacketNotify.
Modify call site accordingly.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <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 e1b265cb269c8fa05569f4c18a338f8b63df2dbb..e94d4892737331ece2581b1ddbd362ae13c80489 100644 (file)
@@ -29,11 +29,6 @@ void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus)
        hal_btcoex_MediaStatusNotify(padapter, mediaStatus);
 }
 
-void rtw_btcoex_SpecialPacketNotify(struct adapter *padapter, u8 pktType)
-{
-       hal_btcoex_SpecialPacketNotify(padapter, pktType);
-}
-
 void rtw_btcoex_BtInfoNotify(struct adapter *padapter, u8 length, u8 *tmpBuf)
 {
        hal_btcoex_BtInfoNotify(padapter, length, tmpBuf);
index 55a481f9d441b2f12209af772524c585e4609e26..47d31a3b2e84f736e83bf305a91615d96343f058 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <drv_types.h>
 #include <rtw_debug.h>
+#include <hal_btcoex.h>
 #include <linux/jiffies.h>
 
 static struct _cmd_callback rtw_cmd_callback[] = {
@@ -1491,7 +1492,7 @@ void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type)
        case LPS_CTRL_SPECIAL_PACKET:
                /* DBG_871X("LPS_CTRL_SPECIAL_PACKET\n"); */
                pwrpriv->DelayLPSLastTimeStamp = jiffies;
-               rtw_btcoex_SpecialPacketNotify(padapter, PACKET_DHCP);
+               hal_btcoex_SpecialPacketNotify(padapter, PACKET_DHCP);
                LPS_Leave(padapter, "LPS_CTRL_SPECIAL_PACKET");
                break;
        case LPS_CTRL_LEAVE:
index c75b08ab713ccf2d27fbe63d059737471391828e..7c5c71fa5c9cb1af154f0fa8ae74ac518f8bfe6a 100644 (file)
@@ -18,7 +18,6 @@
 void rtw_btcoex_ScanNotify(struct adapter *, u8 type);
 void rtw_btcoex_ConnectNotify(struct adapter *, u8 action);
 void rtw_btcoex_MediaStatusNotify(struct adapter *, u8 mediaStatus);
-void rtw_btcoex_SpecialPacketNotify(struct adapter *, u8 pktType);
 void rtw_btcoex_BtInfoNotify(struct adapter *, u8 length, u8 *tmpBuf);
 void rtw_btcoex_SuspendNotify(struct adapter *, u8 state);
 void rtw_btcoex_HaltNotify(struct adapter *);