From d85dcbcd545983e9f2ca590eb28aad721630e736 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Mon, 29 Aug 2005 20:06:02 +0000 Subject: [PATCH] Correct previous commit. --- sys/dev/wi/if_wi.c | 3 --- 1 file changed, 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);