staging: rtl8188eu: Remove function rtw_os_indicate_scan_done()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 12 Jul 2019 07:17:41 +0000 (12:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:14 +0000 (07:34 +0200)
In function rtw_indicate_scan_done, replace call to
rtw_os_indicate_scan_done with call to indicate_wx_scan_complete_event
as all that rtw_os_indicate_scan_done does is call
indicate_wx_scan_complete_event.
Remove now-unused function rtw_os_indicate_scan_done.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190712071746.2474-4-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/include/mlme_osdep.h
drivers/staging/rtl8188eu/os_dep/mlme_linux.c

index d2f7a88e992e79c5b1f257e482d7ed060b86e6e6..43c7531e777ea619fd5d22cd1eb369e15af98635 100644 (file)
@@ -827,7 +827,7 @@ void rtw_indicate_disconnect(struct adapter *padapter)
 
 inline void rtw_indicate_scan_done(struct adapter *padapter, bool aborted)
 {
-       rtw_os_indicate_scan_done(padapter, aborted);
+       indicate_wx_scan_complete_event(padapter);
 }
 
 static struct sta_info *rtw_joinbss_update_stainfo(struct adapter *padapter, struct wlan_network *pnetwork)
index eda16c06336a41c9ecdeabc10fede9322c9fc912..8e919441c2aaa2544b3634fd42e433ebd7888d89 100644 (file)
@@ -13,7 +13,6 @@
 void rtw_init_mlme_timer(struct adapter *padapter);
 void rtw_os_indicate_disconnect(struct adapter *adapter);
 void rtw_os_indicate_connect(struct adapter *adapter);
-void rtw_os_indicate_scan_done(struct adapter *padapter, bool aborted);
 void rtw_report_sec_ie(struct adapter *adapter, u8 authmode, u8 *sec_ie);
 
 void rtw_reset_securitypriv(struct adapter *adapter);
index e660bd4d91ef35994259a84edd1632eeb8ee1119..321b2c46479c4fce3c3fc516202e2d07478ac99a 100644 (file)
@@ -27,11 +27,6 @@ void rtw_os_indicate_connect(struct adapter *adapter)
        netif_carrier_on(adapter->pnetdev);
 }
 
-void rtw_os_indicate_scan_done(struct adapter *padapter, bool aborted)
-{
-       indicate_wx_scan_complete_event(padapter);
-}
-
 static struct rt_pmkid_list backup_pmkid[NUM_PMKID_CACHE];
 
 void rtw_reset_securitypriv(struct adapter *adapter)