]> err.no Git - linux-2.6/commitdiff
Char: mxser, 0 to NULL in pointer
authorJiri Slaby <jirislaby@gmail.com>
Thu, 7 Feb 2008 08:16:43 +0000 (00:16 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:34 +0000 (08:42 -0800)
Don't test a pointer against 0. Use NULL instead.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Reviewed-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mxser_new.c

index 0b25457cda051bc18d0b7591f054624b1fe10666..d2dcc546cc7568fc563e4616ba0d1be3a828df1c 100644 (file)
@@ -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 ||