From 6f8d6b298829a7770fbd762cbccbbe84b0b261fc Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 31 Dec 2001 23:38:54 +0000 Subject: man says bus_space_map() returns non-zero, not negative on failure --- sys/arch/i386/pci/pchb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386/pci/pchb.c') 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 */ -- cgit v1.2.3