staging: r8188eu: Remove wrapper around mutex_destroy
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 22 Dec 2013 23:36:42 +0000 (17:36 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 00:02:10 +0000 (16:02 -0800)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/osdep_service.c
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index b1af4ef7295c890c638e3670ce2b470a0aa33455..026645c418b0a681a92b40a462bd067056f6ec2a 100644 (file)
@@ -277,7 +277,7 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
 
        rtw_free_hwxmits(padapter);
 
-       _rtw_mutex_free(&pxmitpriv->ack_tx_mutex);
+       mutex_destroy(&pxmitpriv->ack_tx_mutex);
 
 out:
 
index 3ea97fd391d0466082a98db29b32689d2f64c75b..7956f0cdb96be981d0459c881f1e8bedd5f5cf29 100644 (file)
@@ -257,7 +257,6 @@ void rtw_list_insert_tail(struct list_head *plist, struct list_head *phead);
 void rtw_list_delete(struct list_head *plist);
 
 u32  _rtw_down_sema(struct semaphore *sema);
-void _rtw_mutex_free(struct mutex *pmutex);
 
 void _rtw_init_queue(struct __queue *pqueue);
 u32  _rtw_queue_empty(struct __queue *pqueue);
index 23d39cc8b813470a8ddd27a5b236894c91673c27..8c3b077448afb414d5f1b94d5eb63add5fc57606 100644 (file)
@@ -169,11 +169,6 @@ u32 _rtw_down_sema(struct semaphore *sema)
                return _SUCCESS;
 }
 
-void   _rtw_mutex_free(struct mutex *pmutex)
-{
-       mutex_destroy(pmutex);
-}
-
 void   _rtw_init_queue(struct __queue *pqueue)
 {
        _rtw_init_listhead(&(pqueue->queue));
index 32d1e977bc22df65267fb6377da400c60654bc02..35107fd758bc294659813eecb721d6c8ddef2cd1 100644 (file)
@@ -144,7 +144,7 @@ static u8 rtw_deinit_intf_priv(struct dvobj_priv *dvobj)
        u8 rst = _SUCCESS;
 
        kfree(dvobj->usb_alloc_vendor_req_buf);
-       _rtw_mutex_free(&dvobj->usb_vendor_req_mutex);
+       mutex_destroy(&dvobj->usb_vendor_req_mutex);
        return rst;
 }
 
@@ -881,7 +881,7 @@ static void __exit rtw_drv_halt(void)
        usb_drv->drv_registered = false;
        usb_deregister(&usb_drv->usbdrv);
 
-       _rtw_mutex_free(&usb_drv->hw_init_mutex);
+       mutex_destroy(&usb_drv->hw_init_mutex);
        DBG_88E("-rtw_drv_halt\n");
 }