diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index ecc42e991df..7780610a89a 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -900,9 +900,8 @@ sis_attach(device_t dev) u_char eaddr[ETHER_ADDR_LEN]; struct sis_softc *sc; struct ifnet *ifp; - int error = 0, pmc, waittime = 0; + int error = 0, pmc; - waittime = 0; sc = device_get_softc(dev); sc->sis_dev = dev; @@ -1028,7 +1027,7 @@ sis_attach(device_t dev) * time we access it, we need to set SIS_EECMD_REQ. */ SIO_SET(SIS_EECMD_REQ); - for (waittime = 0; waittime < SIS_TIMEOUT; + for (int waittime = 0; waittime < SIS_TIMEOUT; waittime++) { /* Force EEPROM to idle state. */ sis_eeprom_idle(sc);