提交 a0b9281e 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

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: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4ce10417
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册