staging: rtl8723au: Get rid of _rtw_free_network23a_nolock23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 26 Apr 2014 16:55:52 +0000 (18:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2014 17:16:22 +0000 (10:16 -0700)
_rtw_free_network23a() and _rtw_free_network23a_nolock23a() are now
identical - one copy should do.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/include/rtw_mlme.h

index b39945ef02da2b897f5b6504d4230e464fac20bc..8d64cb02ee8e8865df3e589f60ab973639fcdd73 100644 (file)
@@ -160,20 +160,6 @@ static void _rtw_free_network23a(struct mlme_priv *pmlmepriv,
        kfree(pnetwork);
 }
 
-void _rtw_free_network23a_nolock23a(struct mlme_priv *pmlmepriv,
-                                   struct wlan_network *pnetwork)
-{
-       if (!pnetwork)
-               return;
-
-       if (pnetwork->fixed == true)
-               return;
-
-       list_del_init(&pnetwork->list);
-
-       kfree(pnetwork);
-}
-
 /*
  return the wlan_network with the matching addr
 
@@ -349,7 +335,7 @@ __le16 *rtw_get_beacon_interval23a_from_ie(u8 *ie)
 static void rtw_free_network_nolock(struct mlme_priv *pmlmepriv,
                                    struct wlan_network *pnetwork)
 {
-       _rtw_free_network23a_nolock23a(pmlmepriv, pnetwork);
+       _rtw_free_network23a(pmlmepriv, pnetwork);
 }
 
 int rtw_is_same_ibss23a(struct rtw_adapter *adapter,
index 744c15bd6c5af8a1c35cf1769c6a89045dc0a4f9..38203f16aee8210c1aabc805fb748e5101254ad5 100644 (file)
@@ -456,9 +456,6 @@ void _rtw_free_mlme_priv23a(struct mlme_priv *pmlmepriv);
 
 struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv);
 
-void _rtw_free_network23a_nolock23a(struct mlme_priv *pmlmepriv,
-                             struct wlan_network *pnetwork);
-
 int rtw_if_up23a(struct rtw_adapter *padapter);
 
 int rtw_linked_check(struct rtw_adapter *padapter);