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 e083f53..e8465fe 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;