Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3667d5c authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

Char: mxser, 0 to NULL in pointer



Don't test a pointer against 0. Use NULL instead.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Reviewed-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d7f549fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2153,7 +2153,7 @@ static void mxser_transmit_chars(struct mxser_port *port)
		return;
		return;
	}
	}


	if (port->xmit_buf == 0)
	if (port->xmit_buf == NULL)
		return;
		return;


	if ((port->xmit_cnt <= 0) || port->tty->stopped ||
	if ((port->xmit_cnt <= 0) || port->tty->stopped ||