Skip to content

Commit

Permalink
USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL …
Browse files Browse the repository at this point in the history
…pointer

Pointers should not be compared to plain integers.
Quiets the sparse warning:
warning: Using plain integer as NULL pointer

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ying Xue authored and Greg Kroah-Hartman committed Aug 10, 2012
1 parent 1139b45 commit a816e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,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
Expand Down

0 comments on commit a816e31

Please sign in to comment.