lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 30 Dec 2007 14:58:55 +0100 From: Jiri Slaby <jirislaby@...il.com> To: Andrew Morton <akpm@...ux-foundation.org> Cc: <linux-kernel@...r.kernel.org>, Jiri Slaby <jirislaby@...il.com> Subject: [PATCH 2/5] Char: mxser, 0 to NULL in pointer Don't test a pointer against 0. Use NULL instead. Signed-off-by: Jiri Slaby <jirislaby@...il.com> --- drivers/char/mxser.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index fe7944c..a66ae57 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c @@ -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 || -- 1.5.3.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists