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:25:12 -0700 |
commit | 24d54932440284584060455a81156f7ca4edff0e (patch) | |
tree | 3ba07e081f44afc30cc3936dd11b98e90c3bbf11 /drivers/usb | |
parent | 9c9d7bf530c4d01e695fd9e8ba69006177d36a14 (diff) | |
download | kernel_samsung_aries-24d54932440284584060455a81156f7ca4edff0e.zip kernel_samsung_aries-24d54932440284584060455a81156f7ca4edff0e.tar.gz kernel_samsung_aries-24d54932440284584060455a81156f7ca4edff0e.tar.bz2 |
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/usb')
-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 457122a..45e55e2 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -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 |