smsc95xx: fix error checking of usbnet_resume
authorSteve Glendinning <steve.glendinning@shawell.net>
Thu, 22 Nov 2012 08:05:22 +0000 (08:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Nov 2012 19:15:16 +0000 (14:15 -0500)
without this patch the two lines below won't ever execute

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c

index e083f537113627557fc997a20d763b9ecc87be97..e8465fecf43a7f928dd13355c4e8155d5b6046da 100644 (file)
@@ -1304,7 +1304,7 @@ static int smsc95xx_resume(struct usb_interface *intf)
                check_warn_return(ret, "Error writing PM_CTRL");
        }
 
-       return usbnet_resume(intf);
+       ret = usbnet_resume(intf);
        check_warn_return(ret, "usbnet_resume error");
 
        return 0;