|
@@ -627,9 +627,6 @@ static int ems_usb_start(struct ems_usb *dev)
|
|
|
|
|
|
err = usb_submit_urb(urb, GFP_KERNEL);
|
|
|
if (err) {
|
|
|
- if (err == -ENODEV)
|
|
|
- netif_device_detach(dev->netdev);
|
|
|
-
|
|
|
usb_unanchor_urb(urb);
|
|
|
usb_free_coherent(dev->udev, RX_BUFFER_SIZE, buf,
|
|
|
urb->transfer_dma);
|
|
@@ -659,9 +656,6 @@ static int ems_usb_start(struct ems_usb *dev)
|
|
|
|
|
|
err = usb_submit_urb(dev->intr_urb, GFP_KERNEL);
|
|
|
if (err) {
|
|
|
- if (err == -ENODEV)
|
|
|
- netif_device_detach(dev->netdev);
|
|
|
-
|
|
|
dev_warn(netdev->dev.parent, "intr URB submit failed: %d\n",
|
|
|
err);
|
|
|
|
|
@@ -692,9 +686,6 @@ static int ems_usb_start(struct ems_usb *dev)
|
|
|
return 0;
|
|
|
|
|
|
failed:
|
|
|
- if (err == -ENODEV)
|
|
|
- netif_device_detach(dev->netdev);
|
|
|
-
|
|
|
dev_warn(netdev->dev.parent, "couldn't submit control: %d\n", err);
|
|
|
|
|
|
return err;
|