projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e6b55e
)
smsc75xx: check return code from smsc75xx_reset
author
Steve Glendinning
<steve.glendinning@shawell.net>
Wed, 28 Nov 2012 05:59:45 +0000
(
05:59
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 28 Nov 2012 16:17:31 +0000
(11:17 -0500)
This patch adds a missing check and error message if smsc75xx_reset
fails.
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/smsc75xx.c
b/drivers/net/usb/smsc75xx.c
index 953c4f44d505c00d2a7c698fa22c46000269d70e..a36648bb1dae7b0f6c56371809b9477c41ccbe29 100644
(file)
--- a/
drivers/net/usb/smsc75xx.c
+++ b/
drivers/net/usb/smsc75xx.c
@@
-1163,6
+1163,7
@@
static int smsc75xx_bind(struct usbnet *dev, struct usb_interface *intf)
/* Init all registers */
ret = smsc75xx_reset(dev);
+ check_warn_return(ret, "smsc75xx_reset error %d\n", ret);
dev->net->netdev_ops = &smsc75xx_netdev_ops;
dev->net->ethtool_ops = &smsc75xx_ethtool_ops;