aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 15:34:37 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-21 12:10:07 +0100
commit09451975df30663e803826e1634a6b8b54b6dae2 (patch)
tree90a756d341b87f03923da458eff3dd9439b81ee2
parentresolvectl: add support for reading/writing per-link 'default-route' boolean (diff)
downloadsystemd-09451975df30663e803826e1634a6b8b54b6dae2.tar.gz
systemd-09451975df30663e803826e1634a6b8b54b6dae2.tar.bz2
systemd-09451975df30663e803826e1634a6b8b54b6dae2.zip
networkd: small simplification
-rw-r--r--src/network/networkd-network.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 62dc6a0bf..16a48a8a6 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -673,16 +673,12 @@ int config_parse_domains(
}
}
- if (is_route) {
+ if (is_route)
r = strv_extend(&n->route_domains, domain);
- if (r < 0)
- return log_oom();
-
- } else {
+ else
r = strv_extend(&n->search_domains, domain);
- if (r < 0)
- return log_oom();
- }
+ if (r < 0)
+ return log_oom();
}
strv_uniq(n->route_domains);