Skip to content

Commit

Permalink
smsc75xx: check return code from smsc75xx_reset
Browse files Browse the repository at this point in the history
This patch adds a missing check and error message if smsc75xx_reset
fails.

Signed-off-by: Steve Glendinning <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
steveglen authored and davem330 committed Nov 28, 2012
1 parent 1e6b55e commit 33763b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/usb/smsc75xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33763b7

Please sign in to comment.