mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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>
This commit is contained in:
parent
a7c37d92d2
commit
78789d95b4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user