diff options
| author | Jouni Malinen <jouni@qca.qualcomm.com> | 2016-07-18 23:41:19 +0300 |
|---|---|---|
| committer | Ashwini Patil <apati@codeaurora.org> | 2016-10-12 13:17:39 +0530 |
| commit | add5e6e1b263841163f9a51b3f82d10eab6f0e4b (patch) | |
| tree | 3e5a4bedee54147955d1fce6181a03bd4d49fc7e | |
| parent | 406dcda2f7515ccf9902ae7a41ad032510c37be5 (diff) | |
| download | android_external_wpa_supplicant_8-add5e6e1b263841163f9a51b3f82d10eab6f0e4b.tar.gz android_external_wpa_supplicant_8-add5e6e1b263841163f9a51b3f82d10eab6f0e4b.tar.bz2 android_external_wpa_supplicant_8-add5e6e1b263841163f9a51b3f82d10eab6f0e4b.zip | |
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>
Git-commit: 34a50145074218f1206799cfc13b24a69444a30e
Git-repo: git://w1.fi/srv/git/hostap.git
Change-Id: I8afc22e53dc35ebc527b86390dc69470a6174e80
CRs-Fixed: 1070010
| -rw-r--r-- | wpa_supplicant/mbo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/wpa_supplicant/mbo.c b/wpa_supplicant/mbo.c index 562ce10a..91667b07 100644 --- a/wpa_supplicant/mbo.c +++ b/wpa_supplicant/mbo.c @@ -577,7 +577,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) |
