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
1 changed files with 3 additions and 6 deletions
|
@ -230,11 +230,8 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
||||||
struct net_device *pnetdev = padapter->pnetdev;
|
struct net_device *pnetdev = padapter->pnetdev;
|
||||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||||
|
|
||||||
int ret = 0;
|
|
||||||
u32 start_time = jiffies;
|
u32 start_time = jiffies;
|
||||||
|
|
||||||
|
|
||||||
pr_debug("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
|
pr_debug("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
|
||||||
|
|
||||||
if ((!padapter->bup) || (padapter->bDriverStopped) ||
|
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);
|
rtw_indicate_disconnect(padapter);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
pr_debug("<=== %s return %d.............. in %dms\n", __func__
|
pr_debug("<=== %s .............. in %dms\n", __func__,
|
||||||
, ret, rtw_get_passing_time_ms(start_time));
|
rtw_get_passing_time_ms(start_time));
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtw_resume_process(struct adapter *padapter)
|
static int rtw_resume_process(struct adapter *padapter)
|
||||||
|
|
Loading…
Add table
Reference in a new issue