ACS: Remove unreachable case from a debug print

n_chans can have only values 1, 2, or 4 in this function, so the -1 case
could never be reached. Remove the unreachable case to get rid of static
analyzer warnings.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2016-01-07 16:50:53 +02:00 committed by Jouni Malinen
parent 896607d36b
commit 12a81b64e1

View file

@ -599,8 +599,7 @@ acs_find_ideal_chan(struct hostapd_iface *iface)
wpa_printf(MSG_DEBUG, "ACS: Survey analysis for selected bandwidth %d MHz", wpa_printf(MSG_DEBUG, "ACS: Survey analysis for selected bandwidth %d MHz",
n_chans == 1 ? 20 : n_chans == 1 ? 20 :
n_chans == 2 ? 40 : n_chans == 2 ? 40 :
n_chans == 4 ? 80 : 80);
-1);
for (i = 0; i < iface->current_mode->num_channels; i++) { for (i = 0; i < iface->current_mode->num_channels; i++) {
double total_weight; double total_weight;