summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2012-02-26 11:36:45 +0000
committermiod <miod@openbsd.org>2012-02-26 11:36:45 +0000
commitaaba4858019ff9567b433fd97385e3bef5e4601b (patch)
treed909daa361d97e496542335bc9c3692168a505ce /sys/dev/isa
parentDocument :*************: in the password field. (diff)
downloadwireguard-openbsd-aaba4858019ff9567b433fd97385e3bef5e4601b.tar.xz
wireguard-openbsd-aaba4858019ff9567b433fd97385e3bef5e4601b.zip
Fix NULL fallout, spotted by naddy
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/gus_isapnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/gus_isapnp.c b/sys/dev/isa/gus_isapnp.c
index 96a1a7b917b..931ef7b677f 100644
--- a/sys/dev/isa/gus_isapnp.c
+++ b/sys/dev/isa/gus_isapnp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gus_isapnp.c,v 1.5 2008/06/26 05:42:16 ray Exp $ */
+/* $OpenBSD: gus_isapnp.c,v 1.6 2012/02/26 11:36:45 miod Exp $ */
/* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */
/*-
@@ -154,7 +154,7 @@ gus_isapnp_attach(parent, self, aux)
sc->sc_ioh1 = ipa->ipa_io[0].h; /* p2xr */
sc->sc_ioh2 = ipa->ipa_io[1].h; /* p3xr */
sc->sc_ioh3 = ipa->ipa_io[2].h; /* codec/mixer */
- sc->sc_ioh4 = NULL; /* midi */
+ sc->sc_ioh4 = (bus_space_handle_t)NULL; /* midi */
sc->sc_irq = ipa->ipa_irq[0].num;
sc->sc_drq = ipa->ipa_drq[1].num;