Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2009 20:27:59 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200484 - head/sys/mips/adm5120
Message-ID:  <200912132027.nBDKRxHp096362@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912132027.nBDKRxHp096362>