Skip to content

Commit

Permalink
USB: oti6858: remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Nov 15, 2011
1 parent b58a646 commit 7da02cd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/usb/serial/oti6858.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7da02cd

Please sign in to comment.