staging: r8188eu: Remove 4 empty routines from os_sep/service.c
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 2 Aug 2021 19:27:19 +0000 (14:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 10:53:19 +0000 (12:53 +0200)
Routines rtw_suspend_lock_init(), rtw_suspend_lock_uninit(),
rtw_lock_suspend(), and rtw_unlock_suspend() do not conti=ain any code.
Simplify by removing them.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20210802192721.23110-5-Larry.Finger@lwfinger.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/osdep_service.h
drivers/staging/r8188eu/os_dep/osdep_service.c
drivers/staging/r8188eu/os_dep/rtw_android.c
drivers/staging/r8188eu/os_dep/usb_intf.c

index bea7091e3a8075123d31df453bb54c248294bd01..376c9018c7e8609a480a095a885bed07900fc5f8 100644 (file)
@@ -330,11 +330,6 @@ static inline u32 bitshift(u32 bitmask)
 /*  limitation of path length */
 #define PATH_LENGTH_MAX PATH_MAX
 
-void rtw_suspend_lock_init(void);
-void rtw_suspend_lock_uninit(void);
-void rtw_lock_suspend(void);
-void rtw_unlock_suspend(void);
-
 struct rtw_netdev_priv_indicator {
        void *priv;
        u32 sizeof_priv;
index a75c681dd4afef7bf4b5cfd874003b2fef2e4022..2e921460e99e8482f0b2fa179d71b31e943c9598 100644 (file)
@@ -191,22 +191,6 @@ void rtw_yield_os(void)
 
 #define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
 
-inline void rtw_suspend_lock_init(void)
-{
-}
-
-inline void rtw_suspend_lock_uninit(void)
-{
-}
-
-inline void rtw_lock_suspend(void)
-{
-}
-
-inline void rtw_unlock_suspend(void)
-{
-}
-
 static const struct device_type wlan_type = {
        .name = "wlan",
 };
index 2b9e719e2a51f175054953bc6796a8bdcf133e96..b55c86131dc7f8ada870e72c16411ab2fee040e9 100644 (file)
@@ -147,7 +147,6 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
        int bytes_written = 0;
        struct android_wifi_priv_cmd priv_cmd;
 
-       rtw_lock_suspend();
        if (!ifr->ifr_data) {
                ret = -EINVAL;
                goto exit;
@@ -279,7 +278,6 @@ response:
                ret = bytes_written;
        }
 exit:
-       rtw_unlock_suspend();
        kfree(command);
        return ret;
 }
index ffa2f150f9377e12f24fbbc0d357fd2616422590..fffc2c0d9efb10a7ee8776c8defa9a110284837b 100644 (file)
@@ -816,8 +816,6 @@ static int __init rtw_drv_entry(void)
 
        DBG_88E(DRV_NAME " driver version=%s\n", DRIVERVERSION);
 
-       rtw_suspend_lock_init();
-
        _rtw_mutex_init(&usb_drv->hw_init_mutex);
 
        usb_drv->drv_registered = true;
@@ -829,8 +827,6 @@ static void __exit rtw_drv_halt(void)
        RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_halt\n"));
        DBG_88E("+rtw_drv_halt\n");
 
-       rtw_suspend_lock_uninit();
-
        usb_drv->drv_registered = false;
        usb_deregister(&usb_drv->usbdrv);