Commit cefd595f authored by Johan Hovold's avatar Johan Hovold Committed by Ben Hutchings

USB: ch341: remove redundant close from open error path

commit 394a1033 upstream.

Remove redundant call to ch341_close from error path when submission of
the interrupt urb fails in open.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent c7f74e50
......@@ -338,7 +338,6 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port)
if (r) {
dev_err(&port->dev, "%s - failed submitting interrupt urb,"
" error %d\n", __func__, r);
ch341_close(port);
goto out;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment