Commit e65b0ecb authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] USB: speedtouch remove error handling with usb_clear_halt

usb_clear_halt cannot be used from a completion handler because it sleeps
As that code path would have crashed the driver, it's obviously not needed
and can be removed.
parent 35d1efe7
...@@ -735,9 +735,6 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs) ...@@ -735,9 +735,6 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs)
return; return;
} }
break; break;
case -EPIPE: /* stall or babble */
usb_clear_halt (urb->dev, usb_rcvbulkpipe (urb->dev, UDSL_ENDPOINT_DATA_IN));
break;
case -ENOENT: /* buffer was unlinked */ case -ENOENT: /* buffer was unlinked */
case -EILSEQ: /* unplug or timeout */ case -EILSEQ: /* unplug or timeout */
case -ETIMEDOUT: /* unplug or timeout */ case -ETIMEDOUT: /* unplug or timeout */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment