mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09:00
staging: rtl8188eu: os_dep: usb_intf.c: Cleaning up unnecessary code
Removes unnecessary code that does not do anything useful. This was partly found using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e844e6d5b3
commit
084c7593b0
@@ -424,14 +424,8 @@ static int rtw_resume(struct usb_interface *pusb_intf)
|
||||
{
|
||||
struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
|
||||
struct adapter *padapter = dvobj->if1;
|
||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||
int ret = 0;
|
||||
|
||||
if (pwrpriv->bInternalAutoSuspend)
|
||||
ret = rtw_resume_process(padapter);
|
||||
else
|
||||
ret = rtw_resume_process(padapter);
|
||||
return ret;
|
||||
return rtw_resume_process(padapter);
|
||||
}
|
||||
|
||||
int rtw_resume_process(struct adapter *padapter)
|
||||
|
||||
Reference in New Issue
Block a user