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-Tag: v5.15~17495^2~1834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=084c7593b030f3a89d311fa06f81beab62b6d28c;p=platform%2Fkernel%2Flinux-starfive.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 4ac67e2..c2e5276 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)