From: Steve Glendinning Date: Thu, 22 Nov 2012 08:05:22 +0000 (+0000) Subject: smsc95xx: fix error checking of usbnet_resume X-Git-Tag: firefly_0821_release~3680^2~1480^2~240 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=af3d7c1e55a6c3ce92ac86d5e1a3b606028c0145;p=firefly-linux-kernel-4.4.55.git smsc95xx: fix error checking of usbnet_resume without this patch the two lines below won't ever execute Signed-off-by: Steve Glendinning Signed-off-by: David S. Miller --- 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;