aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-02-07 03:16:43 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:34 -0500
commitc3667d5c321ac2211d04a746f91a48d339a0e0a1 (patch)
tree3ea77cf2e28213d8c44ae67c66b96e5fd420d8e8 /drivers/char
parentd7f549fa14ed7e3d72927e89dec721eeff4a0159 (diff)
Char: mxser, 0 to NULL in pointer
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/mxser_new.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 0b25457cda05..d2dcc546cc75 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)
2153 return; 2153 return;
2154 } 2154 }
2155 2155
2156 if (port->xmit_buf == 0) 2156 if (port->xmit_buf == NULL)
2157 return; 2157 return;
2158 2158
2159 if ((port->xmit_cnt <= 0) || port->tty->stopped || 2159 if ((port->xmit_cnt <= 0) || port->tty->stopped ||