From: Jiri Slaby Date: Thu, 7 Feb 2008 08:16:43 +0000 (-0800) Subject: Char: mxser, 0 to NULL in pointer X-Git-Tag: v2.6.25-rc1~309 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3667d5c321ac2211d04a746f91a48d339a0e0a1;p=linux-2.6 Char: mxser, 0 to NULL in pointer Don't test a pointer against 0. Use NULL instead. Signed-off-by: Jiri Slaby Reviewed-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index 0b25457cda..d2dcc546cc 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 ||