summaryrefslogtreecommitdiffstats
path: root/sys/dev/mfi
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2006-09-07 05:05:41 +0000
committerscottl <scottl@FreeBSD.org>2006-09-07 05:05:41 +0000
commitfa6dd3282acac440b73e398bea5ba9ac24344545 (patch)
tree09ff10a50efff18789465e3354ceaf31e901b5d6 /sys/dev/mfi
parent28b388f478a97f7ac5d608085d2de2299b5f4940 (diff)
downloadFreeBSD-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.c15
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;
}
}
OpenPOWER on IntegriCloud