* [PATCH 2/2] moxa: fix sparse warnings
@ 2008-02-20 22:14 Harvey Harrison
0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-02-20 22:14 UTC (permalink / raw)
To: Jiri Slaby; +Cc: Andrew Morton, LKML
drivers/char/moxa.c:873:26: warning: Using plain integer as NULL pointer
drivers/char/moxa.c:2037:49: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
drivers/char/moxa.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c
index 75c957f..d7e4aa7 100644
--- a/drivers/char/moxa.c
+++ b/drivers/char/moxa.c
@@ -870,7 +870,7 @@ static void moxa_poll(unsigned long ignored)
if (!(ch->statusflags & THROTTLE) &&
(MoxaPortRxQueue(ch->port) > 0))
moxa_receive_data(ch);
- if ((tp = ch->tty) == 0)
+ if ((tp = ch->tty) == NULL)
continue;
if (ch->statusflags & LOWWAIT) {
if (MoxaPortTxQueue(ch->port) <= WAKEUP_CHARS) {
@@ -2034,7 +2034,7 @@ static int MoxaPortSetTermio(int port, struct ktermios *termio, speed_t baud)
tcflag_t cflag;
tcflag_t mode = 0;
- if (moxa_ports[port].chkPort == 0 || termio == 0)
+ if (moxa_ports[port].chkPort == 0 || termio == NULL)
return (-1);
ofsAddr = moxa_ports[port].tableAddr;
cflag = termio->c_cflag; /* termio->c_cflag */
--
1.5.4.2.200.g99e75
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-20 22:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-20 22:14 [PATCH 2/2] moxa: fix sparse warnings Harvey Harrison
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.