From: navin patidar Date: Tue, 27 May 2014 15:35:49 +0000 (+0530) Subject: staging: rtl8188eu:Remove unused function rtw_handle_dualmac() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=253e0114eb6c1b4f248d793ec5d678ea27dc03f6;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: rtl8188eu:Remove unused function rtw_handle_dualmac() Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c index 6c9e9a16b2e9..c1195a03eee3 100644 --- a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c @@ -1663,24 +1663,3 @@ void beacon_timing_control(struct adapter *padapter) } static struct adapter *pbuddy_padapter; - -int rtw_handle_dualmac(struct adapter *adapter, bool init) -{ - int status = _SUCCESS; - - if (init) { - if (pbuddy_padapter == NULL) { - pbuddy_padapter = adapter; - DBG_88E("%s(): pbuddy_padapter == NULL, Set pbuddy_padapter\n", __func__); - } else { - adapter->pbuddy_adapter = pbuddy_padapter; - pbuddy_padapter->pbuddy_adapter = adapter; - /* clear global value */ - pbuddy_padapter = NULL; - DBG_88E("%s(): pbuddy_padapter exist, Exchange Information\n", __func__); - } - } else { - pbuddy_padapter = NULL; - } - return status; -}