aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-27 22:58:21 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-28 12:31:43 (GMT)
commit02f999c6d8cbb0993d0fc6e14a7a8bfd40b01fa0 (patch)
tree1c7955bcab1c9948e780a238a1fc2afbbe706f23 /hostapd
parent53cef5e58d6c45d5ba5a767e2ab7013b627f90fc (diff)
downloadhostap-02f999c6d8cbb0993d0fc6e14a7a8bfd40b01fa0.zip
hostap-02f999c6d8cbb0993d0fc6e14a7a8bfd40b01fa0.tar.gz
hostap-02f999c6d8cbb0993d0fc6e14a7a8bfd40b01fa0.tar.bz2
hostapd: Remove unnecessary NULL check from parser functions
The fname argument cannot be NULL in these location. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 8ebdd7b..ed1478c 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -129,9 +129,6 @@ static int hostapd_config_read_maclist(const char *fname,
struct mac_acl_entry *newacl;
int vlan_id;
- if (!fname)
- return 0;
-
f = fopen(fname, "r");
if (!f) {
wpa_printf(MSG_ERROR, "MAC list file '%s' not found.", fname);
@@ -224,9 +221,6 @@ static int hostapd_config_read_eap_user(const char *fname,
int line = 0, ret = 0, num_methods;
struct hostapd_eap_user *user = NULL, *tail = NULL, *new_user = NULL;
- if (!fname)
- return 0;
-
if (os_strncmp(fname, "sqlite:", 7) == 0) {
#ifdef CONFIG_SQLITE
os_free(conf->eap_user_sqlite);