]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
USB: pl2303: remove redundant line-request call
authorJohan Hovold <jhovold@gmail.com>
Sun, 29 Dec 2013 18:23:04 +0000 (19:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:31:47 +0000 (12:31 -0800)
Remove redundant get_line_request (the read back settings are never
used).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c

index 28b10cfcb4d3d5fd5556f2876975e0f9aa1fb405..440b99c154350fc746ee3e6877bf6fda1412275f 100644 (file)
@@ -514,9 +514,6 @@ static void pl2303_set_termios(struct tty_struct *tty,
                spin_unlock_irqrestore(&priv->lock, flags);
        }
 
-       memset(buf, 0, 7);
-       pl2303_get_line_request(port, buf);
-
        if (C_CRTSCTS(tty)) {
                if (spriv->type == HX)
                        pl2303_vendor_write(serial, 0x0, 0x61);