Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d708e52 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman
Browse files

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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9aa39bc4
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -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)