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

client: Exclude unnecessary checks

Arrays are guaranteed to be initialized during
the compilation time.
This commit is contained in:
Tim Kourt 2017-08-22 16:10:41 -07:00 committed by Denis Kenzior
parent 4d626d6576
commit 9bb19526d9
2 changed files with 0 additions and 12 deletions

View File

@ -458,9 +458,6 @@ void command_init(void)
command_families = l_queue_new();
if (__start___command == NULL || __stop___command == NULL)
return;
for (desc = __start___command; desc < __stop___command; desc++) {
if (!desc->init)
continue;
@ -473,9 +470,6 @@ void command_exit(void)
{
struct command_family_desc *desc;
if (__start___command == NULL || __stop___command == NULL)
return;
for (desc = __start___command; desc < __stop___command; desc++) {
if (!desc->exit)
continue;

View File

@ -649,9 +649,6 @@ bool dbus_proxy_init(void)
proxy_interface_types = l_queue_new();
proxy_interfaces = l_queue_new();
if (__start___interface == NULL || __stop___interface == NULL)
return false;
for (desc = __start___interface; desc < __stop___interface; desc++) {
if (!desc->init)
continue;
@ -673,9 +670,6 @@ bool dbus_proxy_exit(void)
{
struct interface_type_desc *desc;
if (__start___interface == NULL || __stop___interface == NULL)
return false;
for (desc = __start___interface; desc < __stop___interface; desc++) {
if (!desc->exit)
continue;