]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: drop redundant condition 19656/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 May 2021 19:52:53 +0000 (04:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 May 2021 07:25:02 +0000 (16:25 +0900)
When Network::unmanaged is set, then the Network object is not assigned
to any Link object. Hence, the condition is always false.

src/network/networkd-link.c

index d493afda4c8458d1df88a8e77204c1f17fdf0400..2845da2796ac8441566cef83cbba38bb9fe00b02 100644 (file)
@@ -138,7 +138,7 @@ bool link_ipv6_enabled(Link *link) {
 bool link_is_ready_to_configure(Link *link, bool allow_unmanaged) {
         assert(link);
 
-        if (!link->network || link->network->unmanaged) {
+        if (!link->network) {
                 if (!allow_unmanaged)
                         return false;