network: check info match for unsetting hotspot info
No need to check for matching if unsetting
This commit is contained in:
parent
b4fb60b2c5
commit
d33b5357ed
|
@ -1337,7 +1337,7 @@ static void network_unset_hotspot(struct network *network, void *user_data)
|
|||
{
|
||||
struct network_info *info = user_data;
|
||||
|
||||
if (!hotspot_info_matches(network, info))
|
||||
if (network->info != info)
|
||||
return;
|
||||
|
||||
network_set_info(network, NULL);
|
||||
|
|
Loading…
Reference in New Issue