The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c9439e23cefb918ad71f568a35f2a468ef3365c8

commit c9439e23cefb918ad71f568a35f2a468ef3365c8
Author:     Warner Losh <[email protected]>
AuthorDate: 2022-04-05 02:13:32 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2022-04-05 04:29:57 +0000

    sis_attach: Move waittime definition into for loop
    
    Sponsored by:           Netflix
---
 sys/dev/sis/if_sis.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c
index ecc42e991df4..7780610a89a6 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);

Reply via email to