提交 c3667d5c 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

Char: mxser, 0 to NULL in pointer

Don't test a pointer against 0. Use NULL instead.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Reviewed-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d7f549fa
......@@ -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 ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册