diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-12-31 23:38:54 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-12-31 23:38:54 +0000 |
commit | 6f8d6b298829a7770fbd762cbccbbe84b0b261fc (patch) | |
tree | 2e11a1d1733d0fde1e734b453564c39fc1dec58f /sys/arch/i386 | |
parent | 3bfce77f27869dba713c93dd1914e5eb8ae547bd (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.c | 4 |
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 */ |