From: Steve Glendinning Date: Wed, 28 Nov 2012 05:59:45 +0000 (+0000) Subject: smsc75xx: check return code from smsc75xx_reset X-Git-Tag: firefly_0821_release~3680^2~1480^2~188 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33763b79a1a0c351b81817748d40160f25200ebd;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: David S. Miller --- 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;