From: Yu Watanabe Date: Mon, 17 May 2021 19:52:53 +0000 (+0900) Subject: network: drop redundant condition X-Git-Tag: v249-rc1~199^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e4b1b35bccd649ca28f3cc55f2fc67b27ca7e71;p=thirdparty%2Fsystemd.git network: drop redundant condition When Network::unmanaged is set, then the Network object is not assigned to any Link object. Hence, the condition is always false. --- diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index d493afda4c8..2845da2796a 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -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;