Skip to content

Commit

Permalink
service: Removed redundant NULL check for nameservers in __connman_se…
Browse files Browse the repository at this point in the history
…rvice_nameserver_remove()
  • Loading branch information
n-chaprana authored and LaakkonenJussi committed Mar 12, 2021
1 parent 797ea0e commit 5afd226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connman/src/service.c
Expand Up @@ -1738,7 +1738,7 @@ int __connman_service_nameserver_remove(struct connman_service *service,
if (!nameservers)
return 0;

for (i = 0; nameservers && nameservers[i]; i++)
for (i = 0; nameservers[i]; i++)
if (g_strcmp0(nameservers[i], nameserver) == 0) {
found = true;
break;
Expand Down

0 comments on commit 5afd226

Please sign in to comment.