Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Use NULL for pointer.



details:   https://anonhg.NetBSD.org/src/rev/e501da9a084f
branches:  trunk
changeset: 846677:e501da9a084f
user:      isaki <isaki%NetBSD.org@localhost>
date:      Thu Nov 28 05:07:27 2019 +0000

description:
Use NULL for pointer.

diffstat:

 sys/dev/ic/ac97.c   |  6 +++---
 sys/dev/ic/am7990.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r d6d271c66887 -r e501da9a084f sys/dev/ic/ac97.c
--- a/sys/dev/ic/ac97.c Thu Nov 28 01:08:06 2019 +0000
+++ b/sys/dev/ic/ac97.c Thu Nov 28 05:07:27 2019 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ac97.c,v 1.98 2019/05/08 13:40:18 isaki Exp $ */
+/*      $NetBSD: ac97.c,v 1.99 2019/11/28 05:07:27 isaki Exp $ */
 /*     $OpenBSD: ac97.c,v 1.8 2000/07/19 09:01:35 csapuntz Exp $       */
 
 /*
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.98 2019/05/08 13:40:18 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.99 2019/11/28 05:07:27 isaki Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1691,7 +1691,7 @@
                else if (si->class)
                        name = si->class;
                else
-                       name = 0;
+                       name = NULL;
 
                if (name)
                        strcpy(dip->label.name, name);
diff -r d6d271c66887 -r e501da9a084f sys/dev/ic/am7990.c
--- a/sys/dev/ic/am7990.c       Thu Nov 28 01:08:06 2019 +0000
+++ b/sys/dev/ic/am7990.c       Thu Nov 28 05:07:27 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: am7990.c,v 1.79 2018/06/26 06:48:00 msaitoh Exp $      */
+/*     $NetBSD: am7990.c,v 1.80 2019/11/28 05:07:27 isaki Exp $        */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: am7990.c,v 1.79 2018/06/26 06:48:00 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: am7990.c,v 1.80 2019/11/28 05:07:27 isaki Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -483,7 +483,7 @@
                }
 
                IFQ_DEQUEUE(&ifp->if_snd, m);
-               if (m == 0)
+               if (m == NULL)
                        break;
 
                /*



Home | Main Index | Thread Index | Old Index