mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
staging: rtl8188eu: remove unneeded ret
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>
This commit is contained in:
parent
9aa39bc4d3
commit
7d708e52c2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user