summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/smsc75xx.c
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@shawell.net>2012-11-28 06:59:45 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-28 17:17:31 +0100
commit33763b79a1a0c351b81817748d40160f25200ebd (patch)
tree8ac2c55844e9040c40719bc879da00f35b977668 /drivers/net/usb/smsc75xx.c
parentqlcnic: fix coding style issues in qlcnic_minidump.c (diff)
downloadlinux-33763b79a1a0c351b81817748d40160f25200ebd.tar.xz
linux-33763b79a1a0c351b81817748d40160f25200ebd.zip
smsc75xx: check return code from smsc75xx_reset
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>
Diffstat (limited to 'drivers/net/usb/smsc75xx.c')
-rw-r--r--drivers/net/usb/smsc75xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index 953c4f44d505..a36648bb1dae 100644
--- 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;