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>
This commit is contained in:
Steve Glendinning 2012-11-22 08:05:22 +00:00 committed by David S. Miller
parent 8d8be8389f
commit af3d7c1e55

View 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;