]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: r8188eu: Remove calls to _rtw_spinlock_free
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 20 Dec 2013 04:38:39 +0000 (22:38 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 16:57:45 +0000 (08:57 -0800)
This wrapper does nothing on Linux. When calls to it were removed, a number of
routines became empty and could also be removed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ap.c
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index c3a15611c0d5626279aed45f781eb69c35b41461..e022aaa42a03d9b2d54ad57c7aa885ffb4b2c17a 100644 (file)
@@ -65,8 +65,6 @@ void free_mlme_ap_info(struct adapter *padapter)
        spin_lock_bh(&(pstapriv->sta_hash_lock));
        rtw_free_stainfo(padapter, psta);
        spin_unlock_bh(&(pstapriv->sta_hash_lock));
-
-       _rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
 }
 
 static void update_BCNTIM(struct adapter *padapter)
index d40ee08c4f013e7fd62fc5f0307fb18505456350..64e29a9e8528fa4427aee97fe4e8f89b601d931a 100644 (file)
@@ -121,7 +121,6 @@ void _rtw_free_cmd_priv (struct     cmd_priv *pcmdpriv)
 _func_enter_;
 
        if (pcmdpriv) {
-               _rtw_spinlock_free(&(pcmdpriv->cmd_queue.lock));
                _rtw_free_sema(&(pcmdpriv->cmd_queue_sema));
                _rtw_free_sema(&(pcmdpriv->terminate_cmdthread_sema));
 
index eb79bf3d4b797e70f3b62d04380891fe85cdccaf..3ac632cb9eeaad8659b19389de6a69451fd7e093 100644 (file)
@@ -93,13 +93,6 @@ _func_exit_;
        return res;
 }
 
-static void rtw_mfree_mlme_priv_lock (struct mlme_priv *pmlmepriv)
-{
-       _rtw_spinlock_free(&pmlmepriv->lock);
-       _rtw_spinlock_free(&(pmlmepriv->free_bss_pool.lock));
-       _rtw_spinlock_free(&(pmlmepriv->scanned_queue.lock));
-}
-
 #if defined (CONFIG_88EU_AP_MODE)
 static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
 {
@@ -136,8 +129,6 @@ _func_enter_;
        rtw_free_mlme_priv_ie_data(pmlmepriv);
 
        if (pmlmepriv) {
-               rtw_mfree_mlme_priv_lock (pmlmepriv);
-
                if (pmlmepriv->free_bss_buf) {
                        rtw_vmfree(pmlmepriv->free_bss_buf, MAX_BSS_CNT * sizeof(struct wlan_network));
                }
index 1a140de41de4ddec0c685a533e5a60e7be6c508e..9c9d1ddf95810059f42f22cc135b3efce35ff444 100644 (file)
@@ -118,15 +118,6 @@ _func_exit_;
        return res;
 }
 
-static void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
-{
-       _rtw_spinlock_free(&precvpriv->lock);
-       _rtw_spinlock_free(&precvpriv->free_recv_queue.lock);
-       _rtw_spinlock_free(&precvpriv->recv_pending_queue.lock);
-
-       _rtw_spinlock_free(&precvpriv->free_recv_buf_queue.lock);
-}
-
 void _rtw_free_recv_priv (struct recv_priv *precvpriv)
 {
        struct adapter  *padapter = precvpriv->adapter;
@@ -135,8 +126,6 @@ _func_enter_;
 
        rtw_free_uc_swdec_pending_queue(padapter);
 
-       rtw_mfree_recv_priv_lock(precvpriv);
-
        rtw_os_recv_resource_free(precvpriv);
 
        if (precvpriv->pallocated_frame_buf) {
index 81bb7a5e7c38e6bdc96a0d98abb7dc68c0430306..ff03424161c2438784861822071db0e7803a0880 100644 (file)
@@ -148,47 +148,7 @@ inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int
        return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
 }
 
-void   _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv);
-void   _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv)
-{
-_func_enter_;
-
-       _rtw_spinlock_free(&psta_xmitpriv->lock);
-
-       _rtw_spinlock_free(&(psta_xmitpriv->be_q.sta_pending.lock));
-       _rtw_spinlock_free(&(psta_xmitpriv->bk_q.sta_pending.lock));
-       _rtw_spinlock_free(&(psta_xmitpriv->vi_q.sta_pending.lock));
-       _rtw_spinlock_free(&(psta_xmitpriv->vo_q.sta_pending.lock));
-_func_exit_;
-}
-
-static void    _rtw_free_sta_recv_priv_lock(struct sta_recv_priv *psta_recvpriv)
-{
-_func_enter_;
-
-       _rtw_spinlock_free(&psta_recvpriv->lock);
-
-       _rtw_spinlock_free(&(psta_recvpriv->defrag_q.lock));
-
-_func_exit_;
-}
-
-void rtw_mfree_stainfo(struct sta_info *psta);
-void rtw_mfree_stainfo(struct sta_info *psta)
-{
-_func_enter_;
-
-       if (&psta->lock != NULL)
-                _rtw_spinlock_free(&psta->lock);
-
-       _rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);
-       _rtw_free_sta_recv_priv_lock(&psta->sta_recvpriv);
-
-_func_exit_;
-}
-
 /*  this function is used to free the memory of lock || sema for all stainfos */
-void rtw_mfree_all_stainfo(struct sta_priv *pstapriv);
 void rtw_mfree_all_stainfo(struct sta_priv *pstapriv)
 {
        struct list_head *plist, *phead;
@@ -204,8 +164,6 @@ _func_enter_;
        while ((rtw_end_of_queue_search(phead, plist)) == false) {
                psta = LIST_CONTAINOR(plist, struct sta_info , list);
                plist = get_next(plist);
-
-               rtw_mfree_stainfo(psta);
        }
 
        spin_unlock_bh(&pstapriv->sta_hash_lock);
@@ -218,20 +176,7 @@ static void rtw_mfree_sta_priv_lock(struct sta_priv *pstapriv)
 #ifdef CONFIG_88EU_AP_MODE
        struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
 #endif
-
         rtw_mfree_all_stainfo(pstapriv); /* be done before free sta_hash_lock */
-
-       _rtw_spinlock_free(&pstapriv->free_sta_queue.lock);
-
-       _rtw_spinlock_free(&pstapriv->sta_hash_lock);
-       _rtw_spinlock_free(&pstapriv->wakeup_q.lock);
-       _rtw_spinlock_free(&pstapriv->sleep_q.lock);
-
-#ifdef CONFIG_88EU_AP_MODE
-       _rtw_spinlock_free(&pstapriv->asoc_list_lock);
-       _rtw_spinlock_free(&pstapriv->auth_list_lock);
-       _rtw_spinlock_free(&pacl_list->acl_node_q.lock);
-#endif
 }
 
 u32    _rtw_free_sta_priv(struct       sta_priv *pstapriv)
index c0ccbaf3581736353295a52027361168df29c1e3..a936f819dcf4d5dafe265d85d644e6ca8ff4bd0b 100644 (file)
@@ -233,19 +233,8 @@ _func_exit_;
 
 static void  rtw_mfree_xmit_priv_lock (struct xmit_priv *pxmitpriv)
 {
-       _rtw_spinlock_free(&pxmitpriv->lock);
        _rtw_free_sema(&pxmitpriv->xmit_sema);
        _rtw_free_sema(&pxmitpriv->terminate_xmitthread_sema);
-
-       _rtw_spinlock_free(&pxmitpriv->be_pending.lock);
-       _rtw_spinlock_free(&pxmitpriv->bk_pending.lock);
-       _rtw_spinlock_free(&pxmitpriv->vi_pending.lock);
-       _rtw_spinlock_free(&pxmitpriv->vo_pending.lock);
-       _rtw_spinlock_free(&pxmitpriv->bm_pending.lock);
-
-       _rtw_spinlock_free(&pxmitpriv->free_xmit_queue.lock);
-       _rtw_spinlock_free(&pxmitpriv->free_xmitbuf_queue.lock);
-       _rtw_spinlock_free(&pxmitpriv->pending_xmitbuf_queue.lock);
 }
 
 void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
@@ -284,8 +273,6 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
                rtw_vmfree(pxmitpriv->pallocated_xmitbuf, NR_XMITBUFF * sizeof(struct xmit_buf) + 4);
 
        /*  free xmit extension buff */
-       _rtw_spinlock_free(&pxmitpriv->free_xmit_extbuf_queue.lock);
-
        pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmit_extbuf;
        for (i = 0; i < num_xmit_extbuf; i++) {
                rtw_os_xmit_resource_free(padapter, pxmitbuf, (max_xmit_extbuf_size + XMITBUF_ALIGN_SZ));
index 4b1a6ae04fac628d18029eedf78dbadb1f4dd440..ebfbedc7a9921556cb32d943b986f421d7c0410c 100644 (file)
@@ -262,7 +262,6 @@ void _rtw_up_sema(struct semaphore *sema);
 u32  _rtw_down_sema(struct semaphore *sema);
 void _rtw_mutex_init(struct mutex *pmutex);
 void _rtw_mutex_free(struct mutex *pmutex);
-void _rtw_spinlock_free(spinlock_t *plock);
 
 void _rtw_init_queue(struct __queue *pqueue);
 u32  _rtw_queue_empty(struct __queue *pqueue);
index bc2986a9e25c2c8f2d13937c64f204c64346dadc..e50e3ad8e3b88fc22329572d3723ab009583281d 100644 (file)
@@ -977,9 +977,6 @@ u8 rtw_free_drv_sw(struct adapter *padapter)
        }
        #endif
 
-
-       _rtw_spinlock_free(&padapter->br_ext_lock);
-
        free_mlme_ext_priv(&padapter->mlmeextpriv);
 
        rtw_free_cmd_priv(&padapter->cmdpriv);
index 13d9b1389df1d3b376a83032a309ab33099b0a42..787626c8c64608b2abe4ac9d3cdf79f023b6f0c1 100644 (file)
@@ -193,10 +193,6 @@ void       _rtw_mutex_free(struct mutex *pmutex)
        mutex_destroy(pmutex);
 }
 
-void   _rtw_spinlock_free(spinlock_t *plock)
-{
-}
-
 void   _rtw_init_queue(struct __queue *pqueue)
 {
        _rtw_init_listhead(&(pqueue->queue));