wiphy: Remove unused wiphy_notify_dellink

This commit is contained in:
Denis Kenzior 2016-05-31 16:25:23 -05:00
parent 3563c65111
commit 7b929181ca
2 changed files with 0 additions and 24 deletions

View File

@ -2003,25 +2003,3 @@ bool wiphy_exit(void)
return true;
}
static void wiphy_check_dellink(void *data, void *user_data)
{
uint32_t index = L_PTR_TO_UINT(user_data);
struct wiphy *wiphy = data;
struct device *device;
device = l_queue_remove_if(wiphy->netdev_list, device_match,
L_UINT_TO_PTR(index));
if (device) {
l_warn("Removing leftover interface %s", device->name);
device_free(device);
}
}
void wiphy_notify_dellink(uint32_t index)
{
if (!wiphy_list)
return;
l_queue_foreach(wiphy_list, wiphy_check_dellink, L_UINT_TO_PTR(index));
}

View File

@ -34,6 +34,4 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy,
bool wiphy_init(struct l_genl_family *in);
bool wiphy_exit(void);
void wiphy_notify_dellink(uint32_t index);
void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data);