staging: r8188eu: Remove wrapper _exit_critical_mutex()
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 14 Feb 2014 22:54:13 +0000 (16:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:38:57 +0000 (12:38 -0800)
This wrapper is a simple call to mutex_exit().

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/hal/usb_ops_linux.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index faeec73aec78c5689e0875f38c53da906af997bb..c197b228071d9b51fa259dfbbac7ec95cd02e980 100644 (file)
@@ -4438,7 +4438,7 @@ s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmg
        }
 
        pxmitpriv->ack_tx = false;
-       _exit_critical_mutex(&pxmitpriv->ack_tx_mutex, NULL);
+       mutex_unlock(&pxmitpriv->ack_tx_mutex);
 
         return ret;
 }
index 1bfe497ebf4e13efb2a7c50e8512a06a4630916c..1fa5370f1da60d4622f9232d6d1836f5a725bf36 100644 (file)
@@ -111,7 +111,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
                        break;
        }
 release_mutex:
-       _exit_critical_mutex(&dvobjpriv->usb_vendor_req_mutex, NULL);
+       mutex_unlock(&dvobjpriv->usb_vendor_req_mutex);
 exit:
        return status;
 }
index 09e2d487df8c61f7642d4fbe1b369df21c8cccf3..5cf13a614e21bba8deb7d4caa181016a75ea0579 100644 (file)
@@ -76,13 +76,6 @@ static inline int _enter_critical_mutex(struct mutex *pmutex,
        return ret;
 }
 
-
-static inline void _exit_critical_mutex(struct mutex *pmutex,
-                                       unsigned long *pirqL)
-{
-               mutex_unlock(pmutex);
-}
-
 static inline void rtw_list_delete(struct list_head *plist)
 {
        list_del_init(plist);
index cf4107ab80cb7212ccca3af3160d81af6d8bed9d..bc9ae1df7bd5940a07a01e7e938dc2dd9abd42bb 100644 (file)
@@ -1111,7 +1111,7 @@ int netdev_open(struct net_device *pnetdev)
 
        _enter_critical_mutex(padapter->hw_init_mutex, NULL);
        ret = _netdev_open(pnetdev);
-       _exit_critical_mutex(padapter->hw_init_mutex, NULL);
+       mutex_unlock(padapter->hw_init_mutex);
        return ret;
 }