diff options
author | scottl <scottl@FreeBSD.org> | 2005-08-29 20:06:02 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-08-29 20:06:02 +0000 |
commit | e9c5b0a58c0df9dc9eada1a9b38d15acc1a9e16c (patch) | |
tree | 776214fc9f13e42a4d3f04474e437978821ce832 /sys | |
parent | 139f31aa37b3379cf4dac2aa734345c03a305123 (diff) | |
download | FreeBSD-src-e9c5b0a58c0df9dc9eada1a9b38d15acc1a9e16c.zip FreeBSD-src-e9c5b0a58c0df9dc9eada1a9b38d15acc1a9e16c.tar.gz |
Correct previous commit.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/wi/if_wi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index a3e69d6..21e7e50 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); |