summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-31 23:38:54 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-31 23:38:54 +0000
commit6f8d6b298829a7770fbd762cbccbbe84b0b261fc (patch)
tree2e11a1d1733d0fde1e734b453564c39fc1dec58f /sys/arch/i386
parent3bfce77f27869dba713c93dd1914e5eb8ae547bd (diff)
man says bus_space_map() returns non-zero, not negative on failure
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/pci/pchb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pchb.c b/sys/arch/i386/pci/pchb.c
index 8e3c43d7d71..071f940b36f 100644
--- a/sys/arch/i386/pci/pchb.c
+++ b/sys/arch/i386/pci/pchb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pchb.c,v 1.27 2001/01/22 23:11:21 deraadt Exp $ */
+/* $OpenBSD: pchb.c,v 1.28 2001/12/31 23:38:53 mickey Exp $ */
/* $NetBSD: pchb.c,v 1.6 1997/06/06 23:29:16 thorpej Exp $ */
/*
@@ -289,7 +289,7 @@ pchbattach(parent, self, aux)
case PCI_PRODUCT_INTEL_82860_HB:
sc->bt = pa->pa_memt;
if (bus_space_map(sc->bt, I82802_IOBASE, I82802_IOSIZE,
- 0, &sc->bh) < 0)
+ 0, &sc->bh))
break;
/* probe and init rng */