staging: rtl8723bs: Replace function rtw_free_network_queue()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Wed, 12 Jun 2019 18:04:35 +0000 (23:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2019 09:55:49 +0000 (11:55 +0200)
Remove function rtw_free_network_queue as all it does is call
_rtw_free_network_queue.
Rename _rtw_free_network_queue to rtw_free_network_queue to maintain
compatibility with call sites.
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_mlme.c
drivers/staging/rtl8723bs/include/rtw_mlme.h

index d26d8cf661df42815e1b1f473c6b187817b39c25..b42d94a3a28cd3fd0e04c848b13bc12b2f6eb18d 100644 (file)
@@ -275,7 +275,7 @@ exit:
        return pnetwork;
 }
 
-void _rtw_free_network_queue(struct adapter *padapter, u8 isfreeall)
+void rtw_free_network_queue(struct adapter *padapter, u8 isfreeall)
 {
        struct list_head *phead, *plist;
        struct wlan_network *pnetwork;
@@ -375,12 +375,6 @@ void rtw_free_network_nolock(struct adapter *padapter, struct wlan_network *pnet
        rtw_cfg80211_unlink_bss(padapter, pnetwork);
 }
 
-
-void rtw_free_network_queue(struct adapter *dev, u8 isfreeall)
-{
-       _rtw_free_network_queue(dev, isfreeall);
-}
-
 /*
        return the wlan_network with the matching addr
 
index 2693b554f4146c83814c677f443c35fb5b5932c8..9c9aa9254288504381b73b634ac4c610f98ffcf6 100644 (file)
@@ -607,8 +607,6 @@ extern void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_ne
 
 extern struct wlan_network* _rtw_find_network(struct __queue *scanned_queue, u8 *addr);
 
-extern void _rtw_free_network_queue(struct adapter *padapter, u8 isfreeall);
-
 extern sint rtw_if_up(struct adapter *padapter);
 
 sint rtw_linked_check(struct adapter *padapter);