Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use NULL for initialization of sc_config_change



details:   https://anonhg.NetBSD.org/src/rev/87d005384784
branches:  trunk
changeset: 337973:87d005384784
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue May 05 10:56:13 2015 +0000

description:
Use NULL for initialization of sc_config_change

diffstat:

 sys/dev/pci/if_vioif.c  |  6 +++---
 sys/dev/pci/ld_virtio.c |  6 +++---
 sys/dev/pci/viornd.c    |  4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r d1a45c16de3f -r 87d005384784 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Tue May 05 09:22:33 2015 +0000
+++ b/sys/dev/pci/if_vioif.c    Tue May 05 10:56:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.15 2015/01/16 10:36:14 ozaki-r Exp $    */
+/*     $NetBSD: if_vioif.c,v 1.16 2015/05/05 10:56:13 ozaki-r Exp $    */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.15 2015/01/16 10:36:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.16 2015/05/05 10:56:13 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -501,7 +501,7 @@
        vsc->sc_child = self;
        vsc->sc_ipl = IPL_NET;
        vsc->sc_vqs = &sc->sc_vq[0];
-       vsc->sc_config_change = 0;
+       vsc->sc_config_change = NULL;
        vsc->sc_intrhand = virtio_vq_intr;
        vsc->sc_flags = 0;
 
diff -r d1a45c16de3f -r 87d005384784 sys/dev/pci/ld_virtio.c
--- a/sys/dev/pci/ld_virtio.c   Tue May 05 09:22:33 2015 +0000
+++ b/sys/dev/pci/ld_virtio.c   Tue May 05 10:56:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld_virtio.c,v 1.7 2015/04/13 16:33:25 riastradh Exp $  */
+/*     $NetBSD: ld_virtio.c,v 1.8 2015/05/05 10:56:13 ozaki-r Exp $    */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.7 2015/04/13 16:33:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.8 2015/05/05 10:56:13 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -247,7 +247,7 @@
        vsc->sc_ipl = IPL_BIO;
        vsc->sc_vqs = &sc->sc_vq[0];
        vsc->sc_nvqs = 1;
-       vsc->sc_config_change = 0;
+       vsc->sc_config_change = NULL;
        vsc->sc_intrhand = virtio_vq_intr;
        vsc->sc_flags = 0;
 
diff -r d1a45c16de3f -r 87d005384784 sys/dev/pci/viornd.c
--- a/sys/dev/pci/viornd.c      Tue May 05 09:22:33 2015 +0000
+++ b/sys/dev/pci/viornd.c      Tue May 05 10:56:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viornd.c,v 1.7 2015/04/13 16:33:25 riastradh Exp $ */
+/*     $NetBSD: viornd.c,v 1.8 2015/05/05 10:56:13 ozaki-r Exp $ */
 /*     $OpenBSD: viornd.c,v 1.1 2014/01/21 21:14:58 sf Exp $   */
 
 /*
@@ -137,7 +137,7 @@
 
        vsc->sc_vqs = &sc->sc_vq;
        vsc->sc_nvqs = 1;
-       vsc->sc_config_change = 0;
+       vsc->sc_config_change = NULL;
        if (vsc->sc_child != NULL)
                panic("already attached to something else");
        vsc->sc_child = self;



Home | Main Index | Thread Index | Old Index