aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-03 11:24:25 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-03 11:24:25 +0000
commit13c33c582a6ba9bf641cffccc074b4e546909103 (patch)
tree98ed7de57b19c9ec640b30137f51af987fc79731
parentb5518fb0cf85075470f2346e916b11c6762cb2cc (diff)
Notes
-rw-r--r--sys/dev/pccard/pccard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index ba9add014912..2376fc18fb4c 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -1174,6 +1174,7 @@ static void
pccard_intr(void *arg)
{
struct pccard_function *pf = (struct pccard_function*) arg;
+#ifdef COOKIE_FOR_WARNER
int reg;
if (pf->intr_handler == NULL)
@@ -1189,6 +1190,11 @@ pccard_intr(void *arg)
reg & ~PCCARD_CCR_STATUS_INTR);
pf->intr_handler(pf->intr_handler_arg);
}
+#else
+ if (pf->intr_handler == NULL)
+ return;
+ pf->intr_handler(pf->intr_handler_arg);
+#endif
}
static int