staging: rtl8188eu: os_dep: usb_intf.c: Cleaning up unnecessary code
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 1 Jun 2014 16:32:37 +0000 (18:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:31:05 +0000 (15:31 -0700)
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>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 4ac67e225152c79b95325d4b5706b03b3ec4b039..c2e5276853bf4cba9a13fd8fb8f0d5f97973d81a 100644 (file)
@@ -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)