]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
USB: serial: iuu_phoenix: drop redundant input-speed re-encoding
authorJohan Hovold <johan@kernel.org>
Mon, 16 Jul 2018 11:51:56 +0000 (13:51 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Jul 2018 12:12:11 +0000 (14:12 +0200)
Drop redundant input-speed re-encoding at every open(). The output and
input speeds are initialised to the same value and are kept in sync on
termios updates.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/iuu_phoenix.c

index 87c8dd06420552206a7d605770f22d1f2baf31c7..449e89db9ceaa1920accbfc373cf72bbddda81e8 100644 (file)
@@ -962,9 +962,6 @@ static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port)
        struct iuu_private *priv = usb_get_serial_port_data(port);
 
        baud = tty->termios.c_ospeed;
-       tty->termios.c_ispeed = baud;
-       /* Re-encode speed */
-       tty_encode_baud_rate(tty, baud, baud);
 
        dev_dbg(dev, "%s - baud %d\n", __func__, baud);
        usb_clear_halt(serial->dev, port->write_urb->pipe);