mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
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>
This commit is contained in:
parent
1e6b55ee98
commit
33763b79a1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user