3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

hotspot: eliminate double assignment of variable

This commit is contained in:
Tim Kourt 2019-10-23 13:24:00 -07:00 committed by Denis Kenzior
parent d8f98a5f20
commit b096c27377

View File

@ -320,7 +320,7 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
char **nai_realms = NULL; char **nai_realms = NULL;
const char *rc_str; const char *rc_str;
char *name; char *name;
bool autoconnect = true; bool autoconnect;
/* One of HESSID, NAI realms, or Roaming Consortium must be included */ /* One of HESSID, NAI realms, or Roaming Consortium must be included */
hessid_str = l_settings_get_string(settings, "Hotspot", "HESSID"); hessid_str = l_settings_get_string(settings, "Hotspot", "HESSID");
@ -330,7 +330,9 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
rc_str = l_settings_get_value(settings, "Hotspot", "RoamingConsortium"); rc_str = l_settings_get_value(settings, "Hotspot", "RoamingConsortium");
l_settings_get_bool(settings, "Settings", "Autoconnect", &autoconnect); if (!l_settings_get_bool(settings, "Settings", "Autoconnect",
&autoconnect))
autoconnect = true;
name = l_settings_get_string(settings, "Hotspot", "Name"); name = l_settings_get_string(settings, "Hotspot", "Name");