staging: rtl8712: Replace function r8712_free_network_queue
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 4 Jun 2019 07:29:24 +0000 (12:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:03:34 +0000 (15:03 +0200)
Remove function r8712_free_network_queue, as it does nothing but call
_free_network queue; rename _free_network_queue to
r8712_free_network_queue to enable continued functionality; change the
type of r8712_free_network_queue (formerly _free_network_queue) from
static to non-static to match the type of the old
r8712_free_network_queue.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_mlme.c

index 57d8e7dceef76037b9b0fc11c9d20006f9e70039..f6ba3e865a30f252a2333ad4969624e5669cb2e5 100644 (file)
@@ -151,7 +151,7 @@ static struct wlan_network *_r8712_find_network(struct  __queue *scanned_queue,
        return pnetwork;
 }
 
-static void _free_network_queue(struct _adapter *padapter)
+void r8712_free_network_queue(struct _adapter *padapter)
 {
        unsigned long irqL;
        struct list_head *phead, *plist;
@@ -215,11 +215,6 @@ static struct      wlan_network *alloc_network(struct mlme_priv *pmlmepriv)
        return _r8712_alloc_network(pmlmepriv);
 }
 
-void r8712_free_network_queue(struct _adapter *dev)
-{
-       _free_network_queue(dev);
-}
-
 /*
  * return the wlan_network with the matching addr
  * Shall be called under atomic context...