Skip to contentSkip to conversation

USB: iuu_phoenix: drop redundant input-speed re-encoding

PATCH New Johan Hovold 1 participant 1 message Jul 16, 2018

Subsystems (2)
lore
Share & tools
lore

Johan Hovold

author maintainer
#0 lore raw

PATCH 2/2 USB: iuu_phoenix: drop redundant input-speed re-encoding

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.

---
 drivers/usb/serial/iuu_phoenix.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/usb/serial/iuu_phoenix.c +0 -3
index 87c8dd064205..449e89db9cea 100644
@@ -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);