aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-09-03 12:37:58 (GMT)
committerJouni Malinen <j@w1.fi>2014-09-03 12:37:58 (GMT)
commitdf756b374e4e437117a8b40a079e8df3cf77e98d (patch)
tree98d35698d38928f7c45f559e3c779ccd23f9ce3e /hostapd
parente47abdb9dbd039986f87241808bb43883dd76e0f (diff)
downloadhostap-df756b374e4e437117a8b40a079e8df3cf77e98d.zip
hostap-df756b374e4e437117a8b40a079e8df3cf77e98d.tar.gz
hostap-df756b374e4e437117a8b40a079e8df3cf77e98d.tar.bz2
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index be40398..32e3c49 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -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 *conf;
- struct hostapd_bss_config *bss;
FILE *f;
char buf[512], *pos;
int line = 0;
@@ -3204,9 +3203,11 @@ struct hostapd_config * hostapd_config_read(const char *fname)
return NULL;
}
- bss = conf->last_bss = conf->bss[0];
+ conf->last_bss = conf->bss[0];
while (fgets(buf, sizeof(buf), f)) {
+ struct hostapd_bss_config *bss;
+
bss = conf->last_bss;
line++;