Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci 0 -> NULL.



details:   https://anonhg.NetBSD.org/src/rev/e61ab2b6f814
branches:  trunk
changeset: 840357:e61ab2b6f814
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Apr 04 08:16:24 2019 +0000

description:
0 -> NULL.

diffstat:

 sys/dev/pci/if_bnx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 534b061113d1 -r e61ab2b6f814 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Thu Apr 04 07:51:54 2019 +0000
+++ b/sys/dev/pci/if_bnx.c      Thu Apr 04 08:16:24 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bnx.c,v 1.75 2019/04/01 06:12:51 msaitoh Exp $      */
+/*     $NetBSD: if_bnx.c,v 1.76 2019/04/04 08:16:24 msaitoh Exp $      */
 /*     $OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.75 2019/04/01 06:12:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.76 2019/04/04 08:16:24 msaitoh Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -1892,7 +1892,7 @@
 
        if (align_start || align_end) {
                buf = malloc(len32, M_DEVBUF, M_NOWAIT);
-               if (buf == 0)
+               if (buf == NULL)
                        return ENOMEM;
 
                if (align_start)



Home | Main Index | Thread Index | Old Index