From ecf3f60fed1c4a221b125b032eb458eb883c1e18 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Thu, 10 Nov 2011 23:14:04 +0000 Subject: [PATCH] Remove dead ifdef. Driver should always check raised interrupt is for the device. --- sys/dev/ti/if_ti.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 1ecc7be2f4d..f7df3ccd9b1 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -2825,14 +2825,11 @@ ti_intr(void *xsc) TI_LOCK(sc); ifp = sc->ti_ifp; -/*#ifdef notdef*/ - /* Avoid this for now -- checking this register is expensive. */ /* Make sure this is really our interrupt. */ if (!(CSR_READ_4(sc, TI_MISC_HOST_CTL) & TI_MHC_INTSTATE)) { TI_UNLOCK(sc); return; } -/*#endif*/ /* Ack interrupt and stop others from occuring. */ CSR_WRITE_4(sc, TI_MB_HOSTINTR, 1);