提交 a816e311 编写于 作者: Y Ying Xue 提交者: Greg Kroah-Hartman

USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer

Pointers should not be compared to plain integers.
Quiets the sparse warning:
warning: Using plain integer as NULL pointer
Signed-off-by: NYing Xue <ying.xue@windriver.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1139b451
...@@ -2106,7 +2106,7 @@ static void ftdi_set_termios(struct tty_struct *tty, ...@@ -2106,7 +2106,7 @@ static void ftdi_set_termios(struct tty_struct *tty,
cflag = termios->c_cflag; cflag = termios->c_cflag;
if (old_termios == 0) if (!old_termios)
goto no_skip; goto no_skip;
if (old_termios->c_cflag == termios->c_cflag if (old_termios->c_cflag == termios->c_cflag
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册