summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2005-08-29 20:06:02 +0000
committerScott Long <scottl@FreeBSD.org>2005-08-29 20:06:02 +0000
commitd85dcbcd545983e9f2ca590eb28aad721630e736 (patch)
tree776214fc9f13e42a4d3f04474e437978821ce832
parenta048affba5f469a064dd6ed8d42c50a43d878012 (diff)
Notes
-rw-r--r--sys/dev/wi/if_wi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index a3e69d67041c..21e7e5017447 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -2444,7 +2444,6 @@ wi_cmd(struct wi_softc *sc, int cmd, int val0, int val1, int val2)
if (i == 0) {
device_printf(sc->sc_dev, "wi_cmd: busy bit won't clear.\n" );
sc->wi_gone = 1;
- count--;
return(ETIMEDOUT);
}
@@ -2468,7 +2467,6 @@ wi_cmd(struct wi_softc *sc, int cmd, int val0, int val1, int val2)
s = CSR_READ_2(sc, WI_STATUS);
CSR_WRITE_2(sc, WI_EVENT_ACK, WI_EV_CMD);
if (s & WI_STAT_CMD_RESULT) {
- count--;
return(EIO);
}
break;
@@ -2476,7 +2474,6 @@ wi_cmd(struct wi_softc *sc, int cmd, int val0, int val1, int val2)
DELAY(WI_DELAY);
}
- count--;
if (i == WI_TIMEOUT) {
device_printf(sc->sc_dev,
"timeout in wi_cmd 0x%04x; event status 0x%04x\n", cmd, s);