staging: r8188eu: remove _rtw_enqueue_network()
authorMichael Straube <straube.linux@gmail.com>
Wed, 22 Sep 2021 20:03:43 +0000 (22:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Sep 2021 15:29:39 +0000 (17:29 +0200)
Function _rtw_enqueue_network() is not used, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210922200420.9693-11-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme.c
drivers/staging/r8188eu/include/rtw_mlme.h

index eae3f8a..fb5952d 100644 (file)
@@ -125,23 +125,6 @@ void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
 
 }
 
-int    _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork)
-{
-
-       if (!pnetwork)
-               goto exit;
-
-       spin_lock_bh(&queue->lock);
-
-       list_add_tail(&pnetwork->list, &queue->queue);
-
-       spin_unlock_bh(&queue->lock);
-
-exit:
-
-       return _SUCCESS;
-}
-
 struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)/* _queue *free_queue) */
 {
        struct  wlan_network    *pnetwork;
index fcd700c..e0fec3a 100644 (file)
@@ -584,8 +584,6 @@ void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);
 
 void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv);
 
-int _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork);
-
  struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv);
 
 void _rtw_free_network(struct mlme_priv *pmlmepriv,