aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/oti6858.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2011-11-10 08:58:32 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-15 13:47:44 -0500
commitd5e450ee4f6d88711879592e30c0fb1cf14bf504 (patch)
tree7b1aaf8408a1df0d7be3be74b9e67516da36eeee /drivers/usb/serial/oti6858.c
parent7da02cdcdf4b31cfba501d87e63bce2ddd58872e (diff)
USB: oti6858: forward USB errors to USB serial core
Forward errors from usb_submit_urb in open. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c
index 6770ad0d505b..2161d1c3c089 100644
--- a/drivers/usb/serial/oti6858.c
+++ b/drivers/usb/serial/oti6858.c
@@ -585,7 +585,7 @@ static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port)
585 dev_err(&port->dev, "%s(): usb_submit_urb() failed" 585 dev_err(&port->dev, "%s(): usb_submit_urb() failed"
586 " with error %d\n", __func__, result); 586 " with error %d\n", __func__, result);
587 oti6858_close(port); 587 oti6858_close(port);
588 return -EPROTO; 588 return result;
589 } 589 }
590 590
591 /* setup termios */ 591 /* setup termios */