From: Johan Hovold Date: Thu, 19 Feb 2015 05:34:41 +0000 (+0700) Subject: USB: ch341: remove redundant close from open error path X-Git-Tag: v3.2.87~111 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=cefd595f97fc8ac4bc5401aeb616e49a2a9fe288 USB: ch341: remove redundant close from open error path commit 394a10331a9e43100a8ee293255cfc428c7355ac upstream. Remove redundant call to ch341_close from error path when submission of the interrupt urb fails in open. Signed-off-by: Johan Hovold [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 2a874fda8f63..5b27f5eba320 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c @@ -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; }