summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/dev
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-08 18:14:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-08 18:14:12 +0000
commitfb1494b2483b49b6e5bdfdc5a58edb8cabc5d84f (patch)
treea203e496de0b01efdd3d001d497d33293b876f6b /sys/arch/alpha/dev
parentb4c7a86cd3feff6a98e8061945fc96504742acb1 (diff)
In alpha_shared_intr_stray(), if intr_maxstrays is 0 just return (NetBSD)
Diffstat (limited to 'sys/arch/alpha/dev')
-rw-r--r--sys/arch/alpha/dev/shared_intr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/dev/shared_intr.c b/sys/arch/alpha/dev/shared_intr.c
index ff089f7a24c..6533387f66f 100644
--- a/sys/arch/alpha/dev/shared_intr.c
+++ b/sys/arch/alpha/dev/shared_intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shared_intr.c,v 1.6 1999/02/08 00:05:09 millert Exp $ */
+/* $OpenBSD: shared_intr.c,v 1.7 1999/02/08 18:14:11 millert Exp $ */
/* $NetBSD: shared_intr.c,v 1.1 1996/11/17 02:03:08 cgd Exp $ */
/*
@@ -267,6 +267,10 @@ alpha_shared_intr_stray(intr, num, basename)
{
intr[num].intr_nstrays++;
+
+ if (intr[num].intr_maxstrays == 0)
+ return;
+
if (intr[num].intr_nstrays <= intr[num].intr_maxstrays)
log(LOG_ERR, "stray %s %d%s\n", basename, num,
intr[num].intr_nstrays >= intr[num].intr_maxstrays ?