Commit 4b33d52a authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: r8188eu: Remove wrapper around mutex_destroy

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2ca4ab53
...@@ -277,7 +277,7 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv) ...@@ -277,7 +277,7 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
rtw_free_hwxmits(padapter); rtw_free_hwxmits(padapter);
_rtw_mutex_free(&pxmitpriv->ack_tx_mutex); mutex_destroy(&pxmitpriv->ack_tx_mutex);
out: out:
......
...@@ -257,7 +257,6 @@ void rtw_list_insert_tail(struct list_head *plist, struct list_head *phead); ...@@ -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); void rtw_list_delete(struct list_head *plist);
u32 _rtw_down_sema(struct semaphore *sema); u32 _rtw_down_sema(struct semaphore *sema);
void _rtw_mutex_free(struct mutex *pmutex);
void _rtw_init_queue(struct __queue *pqueue); void _rtw_init_queue(struct __queue *pqueue);
u32 _rtw_queue_empty(struct __queue *pqueue); u32 _rtw_queue_empty(struct __queue *pqueue);
......
...@@ -169,11 +169,6 @@ u32 _rtw_down_sema(struct semaphore *sema) ...@@ -169,11 +169,6 @@ u32 _rtw_down_sema(struct semaphore *sema)
return _SUCCESS; return _SUCCESS;
} }
void _rtw_mutex_free(struct mutex *pmutex)
{
mutex_destroy(pmutex);
}
void _rtw_init_queue(struct __queue *pqueue) void _rtw_init_queue(struct __queue *pqueue)
{ {
_rtw_init_listhead(&(pqueue->queue)); _rtw_init_listhead(&(pqueue->queue));
......
...@@ -144,7 +144,7 @@ static u8 rtw_deinit_intf_priv(struct dvobj_priv *dvobj) ...@@ -144,7 +144,7 @@ static u8 rtw_deinit_intf_priv(struct dvobj_priv *dvobj)
u8 rst = _SUCCESS; u8 rst = _SUCCESS;
kfree(dvobj->usb_alloc_vendor_req_buf); kfree(dvobj->usb_alloc_vendor_req_buf);
_rtw_mutex_free(&dvobj->usb_vendor_req_mutex); mutex_destroy(&dvobj->usb_vendor_req_mutex);
return rst; return rst;
} }
...@@ -881,7 +881,7 @@ static void __exit rtw_drv_halt(void) ...@@ -881,7 +881,7 @@ static void __exit rtw_drv_halt(void)
usb_drv->drv_registered = false; usb_drv->drv_registered = false;
usb_deregister(&usb_drv->usbdrv); 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"); DBG_88E("-rtw_drv_halt\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment