staging: rtl8188eu: Remove unused function _rtw_dequeue_network()
authornavin patidar <navin.patidar@gmail.com>
Sun, 13 Jul 2014 14:29:35 +0000 (19:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 19:29:24 +0000 (12:29 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/include/rtw_mlme.h

index 6cfb729b1917bc524573bb2e6355104c52d9f2dc..5ab675205733688db19ad774f1ed9145218642f5 100644 (file)
@@ -142,25 +142,6 @@ exit:
        return _SUCCESS;
 }
 
-struct wlan_network *_rtw_dequeue_network(struct __queue *queue)
-{
-       struct wlan_network *pnetwork;
-
-       spin_lock_bh(&queue->lock);
-
-       if (list_empty(&queue->queue)) {
-               pnetwork = NULL;
-       } else {
-               pnetwork = container_of((&queue->queue)->next, struct wlan_network, list);
-
-               list_del_init(&(pnetwork->list));
-       }
-
-       spin_unlock_bh(&queue->lock);
-
-       return pnetwork;
-}
-
 struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)/* _queue *free_queue) */
 {
        struct  wlan_network    *pnetwork;
index e727cf0c8cd09fa40733b43a67c3a3200a1c291d..a234e8d893015502490f388b6838a0bfef46f8e7 100644 (file)
@@ -571,8 +571,6 @@ void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv);
 
 int _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork);
 
-struct wlan_network *_rtw_dequeue_network(struct __queue *queue);
-
 struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv);
 
 void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv,