|
@@ -2858,13 +2858,13 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf)
|
|
|
/* Init all registers */
|
|
|
ret = lan78xx_reset(dev);
|
|
|
|
|
|
- lan78xx_mdio_init(dev);
|
|
|
+ ret = lan78xx_mdio_init(dev);
|
|
|
|
|
|
dev->net->flags |= IFF_MULTICAST;
|
|
|
|
|
|
pdata->wol = WAKE_MAGIC;
|
|
|
|
|
|
- return 0;
|
|
|
+ return ret;
|
|
|
}
|
|
|
|
|
|
static void lan78xx_unbind(struct lan78xx_net *dev, struct usb_interface *intf)
|
|
@@ -3525,11 +3525,11 @@ static int lan78xx_probe(struct usb_interface *intf,
|
|
|
udev = interface_to_usbdev(intf);
|
|
|
udev = usb_get_dev(udev);
|
|
|
|
|
|
- ret = -ENOMEM;
|
|
|
netdev = alloc_etherdev(sizeof(struct lan78xx_net));
|
|
|
if (!netdev) {
|
|
|
- dev_err(&intf->dev, "Error: OOM\n");
|
|
|
- goto out1;
|
|
|
+ dev_err(&intf->dev, "Error: OOM\n");
|
|
|
+ ret = -ENOMEM;
|
|
|
+ goto out1;
|
|
|
}
|
|
|
|
|
|
/* netdev_printk() needs this */
|
|
@@ -3610,7 +3610,7 @@ static int lan78xx_probe(struct usb_interface *intf,
|
|
|
ret = register_netdev(netdev);
|
|
|
if (ret != 0) {
|
|
|
netif_err(dev, probe, netdev, "couldn't register the device\n");
|
|
|
- goto out2;
|
|
|
+ goto out3;
|
|
|
}
|
|
|
|
|
|
usb_set_intfdata(intf, dev);
|