Make admsw(4) compile again fixing typos and adding the missing variable
after r199762.
This commit is contained in:
parent
60a396a4f7
commit
07f5a2c997
@ -745,10 +745,11 @@ static void
|
||||
admsw_watchdog(void *arg)
|
||||
{
|
||||
struct admsw_softc *sc = arg;
|
||||
struct ifnet *ifp;
|
||||
int vlan;
|
||||
|
||||
callout_reset(&sc->watchdog, hz, admsw_watchdog, sc);
|
||||
if (sc->sc_timer == 0 || --sc->timer > 0)
|
||||
callout_reset(&sc->sc_watchdog, hz, admsw_watchdog, sc);
|
||||
if (sc->sc_timer == 0 || --sc->sc_timer > 0)
|
||||
return;
|
||||
|
||||
/* Check if an interrupt was lost. */
|
||||
@ -775,6 +776,8 @@ admsw_watchdog(void *arg)
|
||||
admsw_stop(sc->sc_ifnet[vlan], 0);
|
||||
admsw_init(sc);
|
||||
|
||||
ifp = sc->sc_ifnet[0];
|
||||
|
||||
/* Try to get more packets going. */
|
||||
admsw_start(ifp);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user