diff options
author | Johan Hovold <johan@kernel.org> | 2015-02-19 05:34:41 (GMT) |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2015-02-26 17:13:02 (GMT) |
commit | 394a10331a9e43100a8ee293255cfc428c7355ac (patch) | |
tree | 6de716e53404d525fcde98851c51569eb545bcb1 | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | linux-394a10331a9e43100a8ee293255cfc428c7355ac.tar.xz |
USB: ch341: remove redundant close from open error path
Remove redundant call to ch341_close from error path when submission of
the interrupt urb fails in open.
Signed-off-by: Johan Hovold <johan@kernel.org>
-rw-r--r-- | drivers/usb/serial/ch341.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 2d72aa3..79c56d93 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c @@ -328,7 +328,6 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) if (r) { dev_err(&port->dev, "%s - failed to submit interrupt urb: %d\n", __func__, r); - ch341_close(port); goto out; } |