network: check info match for unsetting hotspot info

No need to check for matching if unsetting
This commit is contained in:
James Prestwood 2019-08-28 09:14:29 -07:00 committed by Denis Kenzior
parent b4fb60b2c5
commit d33b5357ed
1 changed files with 1 additions and 1 deletions

View File

@ -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);