summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_pcn.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-11-03 20:47:02 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-11-03 20:47:02 +0000
commitdf7885769546e0e9024637f5358d56f4af99816b (patch)
tree5a76ed6f70b47c0f7acf2865e1ccb26a4c610d2a /sys/dev/pci/if_pcn.c
parentd800cbd157ae776892caa95f34727945ca3d1aaf (diff)
- fix error message printed when pci_mapreg_map() fails.
- initialize error to 0 in pcn_ioctl().
Diffstat (limited to 'sys/dev/pci/if_pcn.c')
-rw-r--r--sys/dev/pci/if_pcn.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c
index d2a2d2a1315..c3db308f7ec 100644
--- a/sys/dev/pci/if_pcn.c
+++ b/sys/dev/pci/if_pcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pcn.c,v 1.2 2005/08/01 22:30:47 kettenis Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.3 2005/11/03 20:47:01 brad Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
@@ -557,8 +557,7 @@ pcn_attach(struct device *parent, struct device *self, void *aux)
sc->sc_st = iot;
sc->sc_sh = ioh;
} else {
- printf("%s: unable to map device registers\n",
- sc->sc_dev.dv_xname);
+ printf(": unable to map device registers\n");
return;
}
@@ -1050,7 +1049,7 @@ pcn_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
struct pcn_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
struct ifaddr *ifa = (struct ifaddr *)data;
- int s, error;
+ int s, error = 0;
s = splnet();