From: Rickard Strandqvist Date: Sun, 1 Jun 2014 16:32:37 +0000 (+0200) Subject: staging: rtl8188eu: os_dep: usb_intf.c: Cleaning up unnecessary code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=084c7593b030f3a89d311fa06f81beab62b6d28c;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 4ac67e225152..c2e5276853bf 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -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)