ACS: Clean up ifdef CONFIG_ACS to avoid unreachable code

The conf->channel assignment was unreachable if CONFIG_ACS was not
defined, so move that to be under #else.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-04-25 23:43:00 +03:00 committed by Jouni Malinen
parent ece88f7697
commit 9670f8773b

View file

@ -2445,8 +2445,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
wpa_printf(MSG_ERROR, "Line %d: tries to enable ACS but CONFIG_ACS disabled", wpa_printf(MSG_ERROR, "Line %d: tries to enable ACS but CONFIG_ACS disabled",
line); line);
return 1; return 1;
#endif /* CONFIG_ACS */ #else /* CONFIG_ACS */
conf->channel = 0; conf->channel = 0;
#endif /* CONFIG_ACS */
} else } else
conf->channel = atoi(pos); conf->channel = atoi(pos);
} else if (os_strcmp(buf, "chanlist") == 0) { } else if (os_strcmp(buf, "chanlist") == 0) {