aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/usb/usbnet.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 9f58330f1312..022c1e72d004 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1307,7 +1307,6 @@ void usbnet_disconnect (struct usb_interface *intf)
1307 usb_free_urb(dev->interrupt); 1307 usb_free_urb(dev->interrupt);
1308 1308
1309 free_netdev(net); 1309 free_netdev(net);
1310 usb_put_dev (xdev);
1311} 1310}
1312EXPORT_SYMBOL_GPL(usbnet_disconnect); 1311EXPORT_SYMBOL_GPL(usbnet_disconnect);
1313 1312
@@ -1363,8 +1362,6 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1363 xdev = interface_to_usbdev (udev); 1362 xdev = interface_to_usbdev (udev);
1364 interface = udev->cur_altsetting; 1363 interface = udev->cur_altsetting;
1365 1364
1366 usb_get_dev (xdev);
1367
1368 status = -ENOMEM; 1365 status = -ENOMEM;
1369 1366
1370 // set up our own records 1367 // set up our own records
@@ -1493,7 +1490,6 @@ out3:
1493out1: 1490out1:
1494 free_netdev(net); 1491 free_netdev(net);
1495out: 1492out:
1496 usb_put_dev(xdev);
1497 return status; 1493 return status;
1498} 1494}
1499EXPORT_SYMBOL_GPL(usbnet_probe); 1495EXPORT_SYMBOL_GPL(usbnet_probe);