sis_attach: Move waittime definition into for loop
Sponsored by: Netflix
This commit is contained in:
parent
94885fbd04
commit
c9439e23ce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user