summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-08-23 15:26:53 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-08-23 15:26:53 +0000
commit9f3a9dd9160f5270a28fd3513ebe62fdeff179f7 (patch)
treedad4223d56433497b2fb2483559adb95620a04ae
parent66488cfe7b27e30799a64e62a16820fa6454fbb3 (diff)
Check for OF_mapintr() failure appears to be backwards; diff mailed to NetBSD.
-rw-r--r--sys/arch/sparc64/dev/pci_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c
index 53e33734932..0c5c826a657 100644
--- a/sys/arch/sparc64/dev/pci_machdep.c
+++ b/sys/arch/sparc64/dev/pci_machdep.c
@@ -420,7 +420,7 @@ pci_intr_map(pc, tag, pin, line, ihp)
}
if (OF_mapintr(node, &interrupts, sizeof(interrupts),
- sizeof(interrupts)) > 0) {
+ sizeof(interrupts)) < 0) {
printf("OF_mapintr failed\n");
}
/* Try to find an IPL for this type of device. */