diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-06 17:46:37 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-13 09:45:02 -0700 |
commit | 800d5c2cab62e3aef15ec3d7bf03e859b9e95a44 (patch) | |
tree | 59e2d36709fa04e6c917f6cdaa483843035c9fb8 /drivers | |
parent | 1bcf5bcf70fb6f316d4eba792d103af602cb3514 (diff) | |
download | lwn-800d5c2cab62e3aef15ec3d7bf03e859b9e95a44.tar.gz lwn-800d5c2cab62e3aef15ec3d7bf03e859b9e95a44.zip |
USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer
commit a816e3113b63753c330ca4751ea1d208e93e3015 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index c6f8e62b4a42..f8a9cd78f268 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -2173,7 +2173,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 |