2012-08-06 09:46:43

by Ying Xue

[permalink] [raw]
Subject: [PATCH] USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL 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 <[email protected]>
---
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 bc912e5..70688cb 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -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
--
1.6.2.3