浏览代码

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>
Johan Hovold 10 年之前
父节点
当前提交
394a10331a
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/usb/serial/ch341.c

+ 0 - 1
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;
 	}