MBO: Remove unused assignment

The local found variable is not used in this case. Commit
653d227e9f ('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>
This commit is contained in:
Jouni Malinen 2016-07-18 23:41:19 +03:00 committed by Jouni Malinen
parent d9ed0ce65e
commit 34a5014507

View file

@ -576,7 +576,6 @@ static int wpas_op_class_supported(struct wpa_supplicant *wpa_s,
if (op_class->op_class == 128) { if (op_class->op_class == 128) {
u8 channels[] = { 42, 58, 106, 122, 138, 155 }; u8 channels[] = { 42, 58, 106, 122, 138, 155 };
found = 0;
for (i = 0; i < ARRAY_SIZE(channels); i++) { for (i = 0; i < ARRAY_SIZE(channels); i++) {
if (verify_channel(mode, channels[i], op_class->bw) == if (verify_channel(mode, channels[i], op_class->bw) ==
ALLOWED) ALLOWED)