diff options
| author | Scott Long <scottl@FreeBSD.org> | 2006-09-07 05:05:41 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2006-09-07 05:05:41 +0000 |
| commit | 6459155f670e2fb06198fb937d34037c35f0900a (patch) | |
| tree | 09ff10a50efff18789465e3354ceaf31e901b5d6 /sys/dev/mfi/mfi.c | |
| parent | 2deae8fa2fc71cfc20b904b038f4cfd71e9fd75d (diff) | |
Remove old debugging code from the interrupt handler.
Notes
svn path=/head/; revision=162099
Diffstat (limited to 'sys/dev/mfi/mfi.c')
| -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 7773af5f1ea8..7a970596e884 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; } } |
