[PATCH 2/7] Char: mxser, 0 to NULL in pointer

From: Jiri Slaby
Date: Fri Jan 18 2008 - 09:32:20 EST


Don't test a pointer against 0. Use NULL instead.

Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
---
drivers/char/mxser_new.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 0b25457..d2dcc54 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -2153,7 +2153,7 @@ static void mxser_transmit_chars(struct mxser_port *port)
return;
}

- if (port->xmit_buf == 0)
+ if (port->xmit_buf == NULL)
return;

if ((port->xmit_cnt <= 0) || port->tty->stopped ||
--
1.5.3.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/