aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_ht.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-03-02 14:19:41 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-02 15:15:12 (GMT)
commit78789d95b4632f782997229a34feed87ee3595ab (patch)
tree9de119598b700e458d1510338f679a498a684802 /src/ap/ieee802_11_ht.c
parenta7c37d92d2ed85ed8275b02c8462368c01b72959 (diff)
downloadhostap-78789d95b4632f782997229a34feed87ee3595ab.zip
hostap-78789d95b4632f782997229a34feed87ee3595ab.tar.gz
hostap-78789d95b4632f782997229a34feed87ee3595ab.tar.bz2
Remove unnecessary variable initialization
The following if statements set the new_op_mode value in all cases, so there is no need to initialize this to 0 first. This removes a static analyzer warning. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/ieee802_11_ht.c')
-rw-r--r--src/ap/ieee802_11_ht.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index 31dc47e..a166178 100644
--- a/src/ap/ieee802_11_ht.c
+++ b/src/ap/ieee802_11_ht.c
@@ -139,7 +139,6 @@ int hostapd_ht_operation_update(struct hostapd_iface *iface)
op_mode_changes++;
}
- new_op_mode = 0;
if (iface->num_sta_no_ht)
new_op_mode = OP_MODE_MIXED;
else if (iface->conf->secondary_channel && iface->num_sta_ht_20mhz)