]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: rtl8188eu: remove unneeded ret
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 16 Jul 2015 11:28:12 +0000 (16:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2015 17:18:09 +0000 (10:18 -0700)
The variable ret was always 0. So remove the variable and always
return 0 from the function.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index b245e9cd780e3d15bd4cc5f70d77bd7bb8c216db..5490b29050759cfdf74a56e1df6770e0a4a4fbac 100644 (file)
@@ -230,11 +230,8 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
        struct net_device *pnetdev = padapter->pnetdev;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
        struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
-
-       int ret = 0;
        u32 start_time = jiffies;
 
-
        pr_debug("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
 
        if ((!padapter->bup) || (padapter->bDriverStopped) ||
@@ -287,10 +284,10 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
                rtw_indicate_disconnect(padapter);
 
 exit:
-       pr_debug("<===  %s return %d.............. in %dms\n", __func__
-               , ret, rtw_get_passing_time_ms(start_time));
+       pr_debug("<===  %s .............. in %dms\n", __func__,
+                rtw_get_passing_time_ms(start_time));
 
-       return ret;
+       return 0;
 }
 
 static int rtw_resume_process(struct adapter *padapter)