Date: Wed, 12 Oct 2011 10:19:55 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226296 - head/sys/net80211 Message-ID: <201110121019.p9CAJtQG061874@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Wed Oct 12 10:19:55 2011 New Revision: 226296 URL: http://svn.freebsd.org/changeset/base/226296 Log: Fix an unused variable warning/error when invariants isn't enabled. Reported by: bz Modified: head/sys/net80211/ieee80211_tdma.c Modified: head/sys/net80211/ieee80211_tdma.c ============================================================================== --- head/sys/net80211/ieee80211_tdma.c Wed Oct 12 09:28:09 2011 (r226295) +++ head/sys/net80211/ieee80211_tdma.c Wed Oct 12 10:19:55 2011 (r226296) @@ -285,9 +285,8 @@ static void tdma_beacon_miss(struct ieee80211vap *vap) { struct ieee80211_tdma_state *ts = vap->iv_tdma; - struct ieee80211com *ic = vap->iv_ic; - IEEE80211_LOCK_ASSERT(ic); + IEEE80211_LOCK_ASSERT(vap->iv_ic); KASSERT((vap->iv_ic->ic_flags & IEEE80211_F_SCAN) == 0, ("scanning")); KASSERT(vap->iv_state == IEEE80211_S_RUN,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110121019.p9CAJtQG061874>