summaryrefslogtreecommitdiff
path: root/drivers/net/usb/smsc95xx.c
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@shawell.net>2012-11-22 12:05:22 +0400
committerDavid S. Miller <davem@davemloft.net>2012-11-23 23:15:16 +0400
commitaf3d7c1e55a6c3ce92ac86d5e1a3b606028c0145 (patch)
tree11f189c344fda7693d1121cf9fac1fb5af582c7d /drivers/net/usb/smsc95xx.c
parent8d8be8389f1818b07505bbf2ec3fb2d556d84496 (diff)
downloadlinux-af3d7c1e55a6c3ce92ac86d5e1a3b606028c0145.tar.xz
smsc95xx: fix error checking of usbnet_resume
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>
Diffstat (limited to 'drivers/net/usb/smsc95xx.c')
-rw-r--r--drivers/net/usb/smsc95xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index e083f5371136..e8465fecf43a 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -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;