Commit 1c779312 authored by Ying Xue's avatar Ying Xue Committed by Ben Hutchings

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

commit a816e311 upstream.

Pointers should not be compared to plain integers.
Quiets the sparse warning:
warning: Using plain integer as NULL pointer
Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 2046bf54
......@@ -2169,7 +2169,7 @@ static void ftdi_set_termios(struct tty_struct *tty,
cflag = termios->c_cflag;
if (old_termios == 0)
if (!old_termios)
goto no_skip;
if (old_termios->c_cflag == termios->c_cflag
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment