Skip to content

Commit

Permalink
Char: mxser, 0 to NULL in pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Feb 7, 2008
1 parent d7f549f commit c3667d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/mxser_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit c3667d5

Please sign in to comment.