diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-06 17:46:37 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-06-19 02:16:47 +0100 |
commit | 1c779312a17a2126bb01001d8aa119a0346a567a (patch) | |
tree | 23b629a428141019a9f0e9631ab5f406c266af43 /drivers/usb/serial/ftdi_sio.c | |
parent | 2046bf5429e670095315355d263f35ad85a1a209 (diff) |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-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 8d686cb49ff6..ce9f87fd93e0 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -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 |