diff options
author | scottl <scottl@FreeBSD.org> | 2006-09-07 05:05:41 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2006-09-07 05:05:41 +0000 |
commit | fa6dd3282acac440b73e398bea5ba9ac24344545 (patch) | |
tree | 09ff10a50efff18789465e3354ceaf31e901b5d6 /sys/dev/mfi | |
parent | 28b388f478a97f7ac5d608085d2de2299b5f4940 (diff) | |
download | FreeBSD-src-fa6dd3282acac440b73e398bea5ba9ac24344545.zip FreeBSD-src-fa6dd3282acac440b73e398bea5ba9ac24344545.tar.gz |
Remove old debugging code from the interrupt handler.
Diffstat (limited to 'sys/dev/mfi')
-rw-r--r-- | sys/dev/mfi/mfi.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index 7773af5..7a97059 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -779,17 +779,10 @@ mfi_intr(void *arg) mtx_lock(&sc->mfi_io_lock); while (ci != pi) { context = sc->mfi_comms->hw_reply_q[ci]; - sc->mfi_comms->hw_reply_q[ci] = 0xffffffff; - if (context == 0xffffffff) { - device_printf(sc->mfi_dev, "mfi_intr: invalid context " - "pi= %d ci= %d\n", pi, ci); - } else { - cm = &sc->mfi_commands[context]; - mfi_remove_busy(cm); - mfi_complete(sc, cm); - } - ci++; - if (ci == (sc->mfi_max_fw_cmds + 1)) { + cm = &sc->mfi_commands[context]; + mfi_remove_busy(cm); + mfi_complete(sc, cm); + if (++ci == (sc->mfi_max_fw_cmds + 1)) { ci = 0; } } |