tree-wide: drop () around the first argument of a ternary op

https://github.com/systemd/systemd/pull/24933#discussion_r991242789
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-10-11 16:59:00 +02:00
parent b413d4fd3e
commit 0b6a47957b
8 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ int manager_save(Manager *m) {
const char *domainname;
char **domains = NULL;
target_domains = (link->network->dhcp_use_domains == DHCP_USE_DOMAINS_YES) ? &search_domains : &route_domains;
target_domains = link->network->dhcp_use_domains == DHCP_USE_DOMAINS_YES ? &search_domains : &route_domains;
r = sd_dhcp_lease_get_domainname(link->dhcp_lease, &domainname);
if (r >= 0) {
r = ordered_set_put_strdup(target_domains, domainname);