aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pccbb
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2007-06-04 03:13:24 +0000
committerWarner Losh <imp@FreeBSD.org>2007-06-04 03:13:24 +0000
commit16f89cb42015b3e365596957d4405a51423a9118 (patch)
tree4bb4fe74555137ca24aa94071813b2bbfb8dbfc1 /sys/dev/pccbb
parentc485ab2d8dbd7dda6b835c21fc2dee62817c0576 (diff)
Notes
Diffstat (limited to 'sys/dev/pccbb')
-rw-r--r--sys/dev/pccbb/pccbb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c
index 778614e93fd9d..0e7f8725a1f90 100644
--- a/sys/dev/pccbb/pccbb.c
+++ b/sys/dev/pccbb/pccbb.c
@@ -382,7 +382,8 @@ cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
* XXX for now that's all we need to do.
*/
err = BUS_SETUP_INTR(device_get_parent(dev), child, irq, flags,
- cbb_func_filt, cbb_func_intr, ih, &ih->cookie);
+ filt ? cbb_func_filt : NULL, intr ? cbb_func_intr : NULL, ih,
+ &ih->cookie);
if (err != 0) {
free(ih, M_DEVBUF);
return (err);
@@ -628,9 +629,7 @@ cbb_func_filt(void *arg)
* nb: don't have to check for giant or not, since that's done in the
* ISR dispatch and one can't hold Giant in a filter anyway...
*/
- if (ih->filt != NULL)
- return ((*ih->filt)(ih->arg));
- return (FILTER_SCHEDULE_THREAD);
+ return ((*ih->filt)(ih->arg));
}
static void