3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 17:39:28 +01:00

device: Print warning if device list isn't empty

This commit is contained in:
Denis Kenzior 2016-07-19 16:49:37 -05:00
parent de6dddce76
commit 22b599df5a

View File

@ -1175,6 +1175,9 @@ bool device_init(void)
bool device_exit(void)
{
if (!l_queue_isempty(device_list))
l_warn("device_list isn't empty!");
l_queue_destroy(device_list, device_free);
device_list = NULL;