Fix an unused variable warning/error when invariants isn't enabled.

Reported by:	bz
This commit is contained in:
Adrian Chadd 2011-10-12 10:19:55 +00:00
parent df46ae53f6
commit eb29e5f70d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226296

View File

@ -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,