From: Johan Hovold Date: Thu, 10 Nov 2011 13:58:31 +0000 (+0100) Subject: USB: oti6858: remove dead code X-Git-Tag: MMI-PSA29.97-13-9~17726^2~64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7da02cdcdf4b31cfba501d87e63bce2ddd58872e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git USB: oti6858: remove dead code Remove code that was apparently copied from pl2303, disabled and then never used. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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) spin_unlock_irqrestore(&priv->lock, flags); if (status != 0) { - /* - if (status == -EPROTO) { - * PL2303 mysteriously fails with -EPROTO reschedule - the read * - dbg("%s - caught -EPROTO, resubmitting the urb", - __func__); - result = usb_submit_urb(urb, GFP_ATOMIC); - if (result) - dev_err(&urb->dev->dev, "%s - failed resubmitting read urb, error %d\n", __func__, result); - return; - } - */ dbg("%s(): unable to handle the error, exiting", __func__); return; }