iwd: Remove a redundant set_current_ap call

set_current_ap is always called before remove_all_aps.
This commit is contained in:
Andrew Zaborowski
2020-10-14 15:02:06 +02:00
committed by Beniamino Galvani
parent d868ce153e
commit ada71a4af6

View File

@@ -181,8 +181,6 @@ remove_all_aps(NMDeviceIwd *self)
if (c_list_is_empty(&priv->aps_lst_head))
return;
set_current_ap(self, NULL, FALSE);
c_list_for_each_entry_safe (ap, ap_safe, &priv->aps_lst_head, aps_lst)
ap_add_remove(self, FALSE, ap, FALSE);