mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
hostapd: Remove unused variable assignment
The local bss variable is used only within the while loop, so no need to assign or even make it visible outside the loop. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
e47abdb9db
commit
df756b374e
@ -3175,7 +3175,6 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
|||||||
struct hostapd_config * hostapd_config_read(const char *fname)
|
struct hostapd_config * hostapd_config_read(const char *fname)
|
||||||
{
|
{
|
||||||
struct hostapd_config *conf;
|
struct hostapd_config *conf;
|
||||||
struct hostapd_bss_config *bss;
|
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[512], *pos;
|
char buf[512], *pos;
|
||||||
int line = 0;
|
int line = 0;
|
||||||
@ -3204,9 +3203,11 @@ struct hostapd_config * hostapd_config_read(const char *fname)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bss = conf->last_bss = conf->bss[0];
|
conf->last_bss = conf->bss[0];
|
||||||
|
|
||||||
while (fgets(buf, sizeof(buf), f)) {
|
while (fgets(buf, sizeof(buf), f)) {
|
||||||
|
struct hostapd_bss_config *bss;
|
||||||
|
|
||||||
bss = conf->last_bss;
|
bss = conf->last_bss;
|
||||||
line++;
|
line++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user