* [PATCH] USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer
@ 2012-08-06 9:46 Ying Xue
0 siblings, 0 replies; only message in thread
From: Ying Xue @ 2012-08-06 9:46 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, linux-usb, linux-serial
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>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-06 9:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-06 9:46 [PATCH] USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer Ying Xue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).