mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
hotspot: eliminate double assignment of variable
This commit is contained in:
parent
d8f98a5f20
commit
b096c27377
@ -320,7 +320,7 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
|
||||
char **nai_realms = NULL;
|
||||
const char *rc_str;
|
||||
char *name;
|
||||
bool autoconnect = true;
|
||||
bool autoconnect;
|
||||
|
||||
/* One of HESSID, NAI realms, or Roaming Consortium must be included */
|
||||
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");
|
||||
|
||||
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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user