3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

knownnetworks: remove redundant ops->remove()

The remove op was being called inside known_networks_remove, which only
gets called from L_DIR_WATCH events. In this case the actual provisioning
has already been removed. Calling remove() again causes the op
implementation to then try and remove the file that no longer exists.
This commit is contained in:
James Prestwood 2019-08-28 09:14:27 -07:00 committed by Denis Kenzior
parent 6a52590687
commit b4fb60b2c5

View File

@ -566,8 +566,6 @@ void known_networks_remove(struct network_info *network)
known_networks_watch_func_t,
KNOWN_NETWORKS_EVENT_REMOVED, network);
network->ops->remove(network);
network_info_free(network);
}