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,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to