From: aoyama Date: Sat, 17 May 2014 10:06:43 +0000 (+0000) Subject: Change the return value of interrupt handler to 0 when nothing is X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ace552a014149de7417db98e4a349653d4ff4329;p=openbsd Change the return value of interrupt handler to 0 when nothing is processed on this driver. "This is correct" miod@ --- diff --git a/sys/arch/luna88k/dev/pcex.c b/sys/arch/luna88k/dev/pcex.c index 14dbfd94554..a2c825ab81c 100644 --- a/sys/arch/luna88k/dev/pcex.c +++ b/sys/arch/luna88k/dev/pcex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcex.c,v 1.2 2014/05/08 13:31:00 aoyama Exp $ */ +/* $OpenBSD: pcex.c,v 1.3 2014/05/17 10:06:43 aoyama Exp $ */ /* * Copyright (c) 2014 Kenji Aoyama. @@ -264,7 +264,7 @@ pcex_intr(void *arg) * - if the INT level is what we are looking for. */ int_status = *cisr & sc->int_bits; - if (int_status == sc->int_bits) return -1; /* Not for me */ + if (int_status == sc->int_bits) return 0; /* Not for me */ #ifdef PCEX_DEBUG printf("%s: called, *cisr=0x%02x, int_bits = 0x%02x\n",