3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +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) bool device_exit(void)
{ {
if (!l_queue_isempty(device_list))
l_warn("device_list isn't empty!");
l_queue_destroy(device_list, device_free); l_queue_destroy(device_list, device_free);
device_list = NULL; device_list = NULL;