aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-07-18 20:41:19 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-18 20:41:19 (GMT)
commit34a50145074218f1206799cfc13b24a69444a30e (patch)
tree344bc5eed65a5097f2a4dd5fcf6ebc931badaf77 /wpa_supplicant
parentd9ed0ce65e7cf51adbf8737e62cc10e1897f8027 (diff)
downloadhostap-34a50145074218f1206799cfc13b24a69444a30e.zip
hostap-34a50145074218f1206799cfc13b24a69444a30e.tar.gz
hostap-34a50145074218f1206799cfc13b24a69444a30e.tar.bz2
MBO: Remove unused assignment
The local found variable is not used in this case. Commit 653d227e9f40cad1114c1c96654061446fd8b131 ('MBO: Improve supported operating class generation') introduced this variable and unnecessarily set it here. Remove the write-only assignment to silence static analyzers. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/mbo.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/wpa_supplicant/mbo.c b/wpa_supplicant/mbo.c
index dcf07a9..5b5c3e6 100644
--- a/wpa_supplicant/mbo.c
+++ b/wpa_supplicant/mbo.c
@@ -576,7 +576,6 @@ static int wpas_op_class_supported(struct wpa_supplicant *wpa_s,
if (op_class->op_class == 128) {
u8 channels[] = { 42, 58, 106, 122, 138, 155 };
- found = 0;
for (i = 0; i < ARRAY_SIZE(channels); i++) {
if (verify_channel(mode, channels[i], op_class->bw) ==
ALLOWED)