summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-05-08 22:10:12 +0000
committermiod <miod@openbsd.org>2004-05-08 22:10:12 +0000
commitca95d195111c49255678f9ec245ef52721e17a52 (patch)
tree1582c13f9c789795d3f0f901a211f0a868fd5ca6
parentUse arc4random() unless the user specifies a specific seed, in which (diff)
downloadwireguard-openbsd-ca95d195111c49255678f9ec245ef52721e17a52.tar.xz
wireguard-openbsd-ca95d195111c49255678f9ec245ef52721e17a52.zip
Remove spurious initialization; drahn@ ok
-rw-r--r--sys/arch/macppc/dev/openpic.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c
index bb41a161498..09d45d2963f 100644
--- a/sys/arch/macppc/dev/openpic.c
+++ b/sys/arch/macppc/dev/openpic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openpic.c,v 1.25 2003/10/19 21:57:35 drahn Exp $ */
+/* $OpenBSD: openpic.c,v 1.26 2004/05/08 22:10:12 miod Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -394,7 +394,7 @@ intr_calculatemasks()
imen_o = ~irqs;
}
}
-int o_virq_inited = 0;
+
/*
* Map 64 irqs into 32 (bits).
*/
@@ -402,14 +402,6 @@ static int
mapirq(int irq)
{
int v;
- int i;
-
- if (o_virq_inited == 0) {
- o_virq_max = 0;
- for (i = 0; i < ICU_LEN; i++)
- o_virq[i] = 0;
- o_virq_inited = 1;
- }
/* irq in table already? */
if (o_virq[irq] != 0)