USB: oti6858: remove dead code
authorJohan Hovold <jhovold@gmail.com>
Thu, 10 Nov 2011 13:58:31 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 18:47:43 +0000 (10:47 -0800)
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>
drivers/usb/serial/oti6858.c

index 2bc1c1a44a752b91d5914a2e48c5ec1f2c9af7b0..6770ad0d505bcb702db8832bd0c4abee8e30b3ff 100644 (file)
@@ -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;
        }