diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-11-10 08:58:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-15 13:47:43 -0500 |
commit | 7da02cdcdf4b31cfba501d87e63bce2ddd58872e (patch) | |
tree | 3ac820bbb4c0b0edd004c0c1d727d6f7778c93bb /drivers/usb/serial/oti6858.c | |
parent | b58a64624ccdaa72f8d9000afddf2ba1865ac498 (diff) |
USB: oti6858: remove dead code
Remove code that was apparently copied from pl2303, disabled and then
never used.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/oti6858.c')
-rw-r--r-- | drivers/usb/serial/oti6858.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 2bc1c1a44a75..6770ad0d505b 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
@@ -888,18 +888,6 @@ static void oti6858_read_bulk_callback(struct urb *urb) | |||
888 | spin_unlock_irqrestore(&priv->lock, flags); | 888 | spin_unlock_irqrestore(&priv->lock, flags); |
889 | 889 | ||
890 | if (status != 0) { | 890 | if (status != 0) { |
891 | /* | ||
892 | if (status == -EPROTO) { | ||
893 | * PL2303 mysteriously fails with -EPROTO reschedule | ||
894 | the read * | ||
895 | dbg("%s - caught -EPROTO, resubmitting the urb", | ||
896 | __func__); | ||
897 | result = usb_submit_urb(urb, GFP_ATOMIC); | ||
898 | if (result) | ||
899 | dev_err(&urb->dev->dev, "%s - failed resubmitting read urb, error %d\n", __func__, result); | ||
900 | return; | ||
901 | } | ||
902 | */ | ||
903 | dbg("%s(): unable to handle the error, exiting", __func__); | 891 | dbg("%s(): unable to handle the error, exiting", __func__); |
904 | return; | 892 | return; |
905 | } | 893 | } |