From: Yu Watanabe Date: Sun, 13 Feb 2022 10:54:09 +0000 (+0900) Subject: network: drop redundant condition X-Git-Tag: v251-rc1~301^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07c160a65c16245bdc1fe8adee8c89370b149d39;p=thirdparty%2Fsystemd.git network: drop redundant condition The function `link_drop_foreign_addresses()` is only called in `link_drop_foreign_config()`, and the same condition is located in the caller. --- diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index b083b632b12..35142093ddb 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -848,10 +848,6 @@ int link_drop_foreign_addresses(Link *link) { assert(link); assert(link->network); - /* Keep all addresses when KeepConfiguration=yes. */ - if (link->network->keep_configuration == KEEP_CONFIGURATION_YES) - return 0; - /* First, mark all addresses. */ SET_FOREACH(address, link->addresses) { /* We consider IPv6LL addresses to be managed by the kernel, or dropped in link_drop_ipv6ll_addresses() */