Char: mxser, 0 to NULL in pointer
Jiri Slaby [Thu, 7 Feb 2008 08:16:43 +0000 (00:16 -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 0b25457..d2dcc54 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 ||