iwd: Remove a redundant set_current_ap call
set_current_ap is always called before remove_all_aps.
This commit is contained in:

committed by
Beniamino Galvani

parent
d868ce153e
commit
ada71a4af6
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user