Remove duplicated variable zeroing
It's enough to do this once as part of the for loop. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4a9d0ebe4a
commit
ee4fefc015
1 changed files with 0 additions and 2 deletions
|
@ -62,7 +62,6 @@ u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid)
|
||||||
}
|
}
|
||||||
|
|
||||||
*pos++ = num;
|
*pos++ = num;
|
||||||
count = 0;
|
|
||||||
for (i = 0, count = 0; i < hapd->iface->num_rates && count < num;
|
for (i = 0, count = 0; i < hapd->iface->num_rates && count < num;
|
||||||
i++) {
|
i++) {
|
||||||
count++;
|
count++;
|
||||||
|
@ -105,7 +104,6 @@ u8 * hostapd_eid_ext_supp_rates(struct hostapd_data *hapd, u8 *eid)
|
||||||
|
|
||||||
*pos++ = WLAN_EID_EXT_SUPP_RATES;
|
*pos++ = WLAN_EID_EXT_SUPP_RATES;
|
||||||
*pos++ = num;
|
*pos++ = num;
|
||||||
count = 0;
|
|
||||||
for (i = 0, count = 0; i < hapd->iface->num_rates && count < num + 8;
|
for (i = 0, count = 0; i < hapd->iface->num_rates && count < num + 8;
|
||||||
i++) {
|
i++) {
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Reference in a new issue