summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-16 20:44:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-16 20:44:24 +0000
commitb52f43cc3f762b9fb198cacf71681a934baec544 (patch)
tree91ac48de8e5b7ba60c6449c0aad7a4a3c9e93461
parent79bd9a674564ac4adf8ee6b531cc5c5a4a68f37a (diff)
Line 0 is not wired, thus illegal for use in frodo_intr_establish().
-rw-r--r--sys/arch/hp300/dev/frodo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/frodo.c b/sys/arch/hp300/dev/frodo.c
index fc19918f77d..c606928f1e0 100644
--- a/sys/arch/hp300/dev/frodo.c
+++ b/sys/arch/hp300/dev/frodo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frodo.c,v 1.7 2005/11/16 21:37:02 miod Exp $ */
+/* $OpenBSD: frodo.c,v 1.8 2006/06/16 20:44:23 miod Exp $ */
/* $NetBSD: frodo.c,v 1.5 1999/07/31 21:15:20 thorpej Exp $ */
/*-
@@ -245,7 +245,7 @@ frodo_intr_establish(struct device *frdev, int line, struct isr *isr,
struct frodo_softc *sc = (struct frodo_softc *)frdev;
int priority = isr->isr_priority;
- if (line < 0 || line >= FRODO_NINTR) {
+ if (line <= 0 || line >= FRODO_NINTR) {
panic("%s: bad interrupt line %d",
sc->sc_dev.dv_xname, line);
}