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>
This commit is contained in:
Johan Hovold 2015-02-19 12:34:41 +07:00
parent c517d838eb
commit 394a10331a
1 changed files with 0 additions and 1 deletions

View File

@ -328,7 +328,6 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port)
if (r) { if (r) {
dev_err(&port->dev, "%s - failed to submit interrupt urb: %d\n", dev_err(&port->dev, "%s - failed to submit interrupt urb: %d\n",
__func__, r); __func__, r);
ch341_close(port);
goto out; goto out;
} }