projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c517d83
)
USB: ch341: remove redundant close from open error path
author
Johan Hovold
<johan@kernel.org>
Thu, 19 Feb 2015 05:34:41 +0000
(12:34 +0700)
committer
Johan Hovold
<johan@kernel.org>
Thu, 26 Feb 2015 17:13:02 +0000
(18:13 +0100)
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>
drivers/usb/serial/ch341.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/ch341.c
b/drivers/usb/serial/ch341.c
index 2d72aa3564a31e9eeade77423ec16de3d743c706..79c56d93d66625fd8b63669163d302fd162aef3c 100644
(file)
--- 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;
}