Fix unused variable warning in ieee80211_proto.c
With clang 15, the following -Werror warning is produced: sys/net80211/ieee80211_proto.c:1070:34: error: variable 'num_mixed' set but not used [-Werror,-Wunused-but-set-variable] int num_vaps = 0, num_pure = 0, num_mixed = 0; ^ The 'num_mixed' variable was in ieee80211_proto.c when the function vap_update_ht_protmode() was added, but it was never used for anything, so remove it. MFC after: 3 days
This commit is contained in:
parent
5e1097f83c
commit
9319211f96
@ -1067,7 +1067,7 @@ vap_update_ht_protmode(void *arg, int npending)
|
||||
struct ieee80211vap *vap = arg;
|
||||
struct ieee80211vap *iv;
|
||||
struct ieee80211com *ic = vap->iv_ic;
|
||||
int num_vaps = 0, num_pure = 0, num_mixed = 0;
|
||||
int num_vaps = 0, num_pure = 0;
|
||||
int num_optional = 0, num_ht2040 = 0, num_nonht = 0;
|
||||
int num_ht_sta = 0, num_ht40_sta = 0, num_sta = 0;
|
||||
int num_nonhtpr = 0;
|
||||
@ -1108,9 +1108,6 @@ vap_update_ht_protmode(void *arg, int npending)
|
||||
case IEEE80211_HTINFO_OPMODE_HT20PR:
|
||||
num_ht2040++;
|
||||
break;
|
||||
case IEEE80211_HTINFO_OPMODE_MIXED:
|
||||
num_mixed++;
|
||||
break;
|
||||
}
|
||||
|
||||
IEEE80211_DPRINTF(vap, IEEE80211_MSG_11N,
|
||||
|
Loading…
Reference in New Issue
Block a user