diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-11-10 08:58:28 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-15 13:47:42 -0500 |
commit | 06946a66546aedfc5192645e8fc56081441e378c (patch) | |
tree | 96e1ede46e332106bc8ba8cc098572195586ba33 /drivers/usb/serial/ch341.c | |
parent | 3827d8762febd68ff1b6db0bb5efa55bfbccaeb4 (diff) |
USB: ch341: forward USB errors to USB serial core
All error messages from stack in open are being forwarded except for
one call to usb_submit_urb. Change this for consistency.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/ch341.c')
-rw-r--r-- | drivers/usb/serial/ch341.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 8607f1522ef3..0e77511060c0 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -340,7 +340,7 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
340 | dev_err(&port->dev, "%s - failed submitting interrupt urb," | 340 | dev_err(&port->dev, "%s - failed submitting interrupt urb," |
341 | " error %d\n", __func__, r); | 341 | " error %d\n", __func__, r); |
342 | ch341_close(port); | 342 | ch341_close(port); |
343 | return -EPROTO; | 343 | goto out; |
344 | } | 344 | } |
345 | 345 | ||
346 | r = usb_serial_generic_open(tty, port); | 346 | r = usb_serial_generic_open(tty, port); |