Commit 736c0931 authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: xr: simplify line-speed logic



Simplify the changed-line-speed conditional expression.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 35567511
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -451,8 +451,7 @@ static void xr_set_termios(struct tty_struct *tty,
	u8 bits = 0;
	int ret;

	if ((old_termios && tty->termios.c_ospeed != old_termios->c_ospeed) ||
	    !old_termios)
	if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed))
		xr_set_baudrate(tty, port);

	switch (C_CSIZE(tty)) {