svn commit: r200484 - head/sys/mips/adm5120
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Dec 13 12:27:59 PST 2009
Author: bz
Date: Sun Dec 13 20:27:59 2009
New Revision: 200484
URL: http://svn.freebsd.org/changeset/base/200484
Log:
Make admsw(4) compile again fixing typos and adding the missing variable
after r199762.
Modified:
head/sys/mips/adm5120/if_admsw.c
Modified: head/sys/mips/adm5120/if_admsw.c
==============================================================================
--- head/sys/mips/adm5120/if_admsw.c Sun Dec 13 20:27:46 2009 (r200483)
+++ head/sys/mips/adm5120/if_admsw.c Sun Dec 13 20:27:59 2009 (r200484)
@@ -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);
}
More information about the svn-src-head
mailing list