]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix unused variable warning in ieee80211_proto.c
authorDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 19:05:36 +0000 (21:05 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 19:25:09 +0000 (21:25 +0200)
commit9319211f96c6f11959c76f1d565a744ab37b0031
treec9fb55a36a132472338e1a76f6d102b0ef2f50d8
parent5e1097f83cbe353839888c0aad8e31bb62b8e9a4
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
sys/net80211/ieee80211_proto.c