Commit bd9dfe93 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: Remove rtw_btcoex_HAL_Initialize()



Remove function rtw_btcoex_HAL_Initialize as it does nothing except call
hal_btcoex_InitHwConfig.
Modify call sites accordingly.
Issue found with Coccinelle.

Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b13aaa5f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -9,11 +9,6 @@
#include <rtw_btcoex.h>
#include <hal_btcoex.h>

void rtw_btcoex_HAL_Initialize(struct adapter *padapter, u8 bWifiOnly)
{
	hal_btcoex_InitHwConfig(padapter, bWifiOnly);
}

void rtw_btcoex_IpsNotify(struct adapter *padapter, u8 type)
{
	hal_btcoex_IpsNotify(padapter, type);
+2 −2
Original line number Diff line number Diff line
@@ -764,7 +764,7 @@ static u32 rtl8723bs_hal_init(struct adapter *padapter)

		rtw_hal_set_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);

		rtw_btcoex_HAL_Initialize(padapter, false);
		hal_btcoex_InitHwConfig(padapter, false);

		return _SUCCESS;
	}
@@ -1009,7 +1009,7 @@ static u32 rtl8723bs_hal_init(struct adapter *padapter)
	}

	/*  Init BT hw config. */
	rtw_btcoex_HAL_Initialize(padapter, false);
	hal_btcoex_InitHwConfig(padapter, false);

	RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("-%s\n", __func__));

+0 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
#define	PACKET_ARP				2
#define	PACKET_EAPOL			3

void rtw_btcoex_HAL_Initialize(struct adapter *padapter, u8 bWifiOnly);
void rtw_btcoex_IpsNotify(struct adapter *, u8 type);
void rtw_btcoex_LpsNotify(struct adapter *, u8 type);
void rtw_btcoex_ScanNotify(struct adapter *, u8 type);