diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-03-02 17:31:54 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-03-02 17:31:54 +0000 |
commit | b4a5e9151c9315eb56920ebff7a4e9757f228b8d (patch) | |
tree | 94b7fb6fabfff4c60f3d64d01f441d862b4a7250 /sys/arch/macppc | |
parent | 67b64cd6cec9b30edd74ec05d2e1279fe3ac56ea (diff) |
Do not use -1 as an unused entry, 0 is already reserved for invalid/unused.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/dev/openpic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c index b25e2f9a626..a953de425fe 100644 --- a/sys/arch/macppc/dev/openpic.c +++ b/sys/arch/macppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.12 2002/03/02 17:27:18 drahn Exp $ */ +/* $OpenBSD: openpic.c,v 1.13 2002/03/02 17:31:53 drahn Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -430,13 +430,13 @@ mapirq(irq) if (o_virq_inited == 0) { o_virq_max = 0; for (i = 0; i < ICU_LEN; i++) { - o_virq[i] = -1; + o_virq[i] = 0; } o_virq_inited = 1; } /* irq in table already? */ - if (o_virq[irq] != -1) { + if (o_virq[irq] != 0) { return o_virq[irq]; } |