Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0b9281e authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: serial: remove defensive test from set_termios



Remove defensive test from set_termios which is never called with a NULL
tty.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4ce10417
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -666,9 +666,6 @@ static void cp210x_set_termios(struct tty_struct *tty,
	unsigned int bits;
	unsigned int modem_ctl[4];

	if (!tty)
		return;

	cflag = tty->termios.c_cflag;
	old_cflag = old_termios->c_cflag;

+0 −3
Original line number Diff line number Diff line
@@ -411,9 +411,6 @@ static void oti6858_set_termios(struct tty_struct *tty,
	__le16 divisor;
	int br;

	if (!tty)
		return;

	cflag = tty->termios.c_cflag;

	spin_lock_irqsave(&priv->lock, flags);