From: dv Date: Fri, 28 Jul 2023 16:54:48 +0000 (+0000) Subject: Initialize handlers with NULL, not 0. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5932474cfe16d7ce2e1514ec5bb209198a0ce155;p=openbsd Initialize handlers with NULL, not 0. --- diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c index b926725a85d..28df941e061 100644 --- a/sys/dev/pv/if_vio.c +++ b/sys/dev/pv/if_vio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vio.c,v 1.24 2023/07/03 07:40:52 kn Exp $ */ +/* $OpenBSD: if_vio.c,v 1.25 2023/07/28 16:54:48 dv Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg. @@ -529,7 +529,7 @@ vio_attach(struct device *parent, struct device *self, void *aux) 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_driver_features = VIRTIO_NET_F_MAC | VIRTIO_NET_F_STATUS | VIRTIO_NET_F_CTRL_VQ | VIRTIO_NET_F_CTRL_RX | VIRTIO_NET_F_MRG_RXBUF | VIRTIO_NET_F_CSUM | diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c index 2a8d2677848..05ecc756528 100644 --- a/sys/dev/pv/vioblk.c +++ b/sys/dev/pv/vioblk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioblk.c,v 1.36 2023/05/29 08:13:35 sf Exp $ */ +/* $OpenBSD: vioblk.c,v 1.37 2023/07/28 16:54:48 dv Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch. @@ -174,7 +174,7 @@ vioblk_attach(struct device *parent, struct device *self, void *aux) vsc->sc_vqs = &sc->sc_vq[0]; vsc->sc_nvqs = 1; - vsc->sc_config_change = 0; + vsc->sc_config_change = NULL; if (vsc->sc_child) panic("already attached to something else"); vsc->sc_child = self; diff --git a/sys/dev/pv/viocon.c b/sys/dev/pv/viocon.c index 4d154c34bf7..313d3acf73a 100644 --- a/sys/dev/pv/viocon.c +++ b/sys/dev/pv/viocon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viocon.c,v 1.9 2023/05/29 08:13:35 sf Exp $ */ +/* $OpenBSD: viocon.c,v 1.10 2023/07/28 16:54:48 dv Exp $ */ /* * Copyright (c) 2013-2015 Stefan Fritsch @@ -180,7 +180,7 @@ viocon_attach(struct device *parent, struct device *self, void *aux) panic("already attached to something else"); vsc->sc_child = self; vsc->sc_ipl = IPL_TTY; - vsc->sc_config_change = 0; + vsc->sc_config_change = NULL; sc->sc_virtio = vsc; sc->sc_max_ports = maxports; diff --git a/sys/dev/pv/viornd.c b/sys/dev/pv/viornd.c index eb129743be7..5f5dfac75e6 100644 --- a/sys/dev/pv/viornd.c +++ b/sys/dev/pv/viornd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viornd.c,v 1.6 2023/05/29 08:13:35 sf Exp $ */ +/* $OpenBSD: viornd.c,v 1.7 2023/07/28 16:54:48 dv Exp $ */ /* * Copyright (c) 2014 Stefan Fritsch @@ -88,7 +88,7 @@ viornd_attach(struct device *parent, struct device *self, void *aux) 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;