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>
This commit is contained in:
parent
53cef5e58d
commit
02f999c6d8
1 changed files with 0 additions and 6 deletions
|
@ -129,9 +129,6 @@ static int hostapd_config_read_maclist(const char *fname,
|
||||||
struct mac_acl_entry *newacl;
|
struct mac_acl_entry *newacl;
|
||||||
int vlan_id;
|
int vlan_id;
|
||||||
|
|
||||||
if (!fname)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
f = fopen(fname, "r");
|
f = fopen(fname, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
wpa_printf(MSG_ERROR, "MAC list file '%s' not found.", fname);
|
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;
|
int line = 0, ret = 0, num_methods;
|
||||||
struct hostapd_eap_user *user = NULL, *tail = NULL, *new_user = NULL;
|
struct hostapd_eap_user *user = NULL, *tail = NULL, *new_user = NULL;
|
||||||
|
|
||||||
if (!fname)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (os_strncmp(fname, "sqlite:", 7) == 0) {
|
if (os_strncmp(fname, "sqlite:", 7) == 0) {
|
||||||
#ifdef CONFIG_SQLITE
|
#ifdef CONFIG_SQLITE
|
||||||
os_free(conf->eap_user_sqlite);
|
os_free(conf->eap_user_sqlite);
|
||||||
|
|
Loading…
Add table
Reference in a new issue