summaryrefslogtreecommitdiffstats
path: root/sys/mips/adm5120
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-12-13 20:27:59 +0000
committerbz <bz@FreeBSD.org>2009-12-13 20:27:59 +0000
commitc972939f4f0780d202bd65d798bc97139665d7b4 (patch)
tree553aff655af28722e3bd69e2abdd340b6e2d6e7a /sys/mips/adm5120
parentb8a76a26d7efee89c5b8137ee8c47ded132f83c9 (diff)
downloadFreeBSD-src-c972939f4f0780d202bd65d798bc97139665d7b4.zip
FreeBSD-src-c972939f4f0780d202bd65d798bc97139665d7b4.tar.gz
Make admsw(4) compile again fixing typos and adding the missing variable
after r199762.
Diffstat (limited to 'sys/mips/adm5120')
-rw-r--r--sys/mips/adm5120/if_admsw.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/mips/adm5120/if_admsw.c b/sys/mips/adm5120/if_admsw.c
index 91864c4..164e840 100644
--- a/sys/mips/adm5120/if_admsw.c
+++ b/sys/mips/adm5120/if_admsw.c
@@ -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);
}
OpenPOWER on IntegriCloud