Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 394a1033 authored by Johan Hovold's avatar Johan Hovold
Browse files

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: default avatarJohan Hovold <johan@kernel.org>
parent c517d838
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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;
	}
	}