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

commit a816e31 upstream.

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>
Cc: Lotfi Manseur <lotfi.manseur@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ying Xue authored and Greg Kroah-Hartman committed Jun 13, 2013
1 parent 9c9d7bf commit 24d5493
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 @@ -2141,7 +2141,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 24d5493

Please sign in to comment.