From: Yu Watanabe Date: Wed, 8 Sep 2021 02:57:45 +0000 (+0900) Subject: network: drop unnecessary link_drop_foreign_config() X-Git-Tag: v250-rc1~590^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4c7934a3c78dcb7488c44341c6cd11b3827938a;p=thirdparty%2Fsystemd.git network: drop unnecessary link_drop_foreign_config() Now, link_drop_foreign_config() drops subset of configs which can be dropped by link_drop_config(). --- diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index dbc8a2347b5..c59a50a8dbd 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1610,11 +1610,7 @@ static int link_carrier_lost(Link *link) { return r; } - r = link_drop_config(link); - if (r < 0) - return r; - - return link_drop_foreign_config(link); + return link_drop_config(link); } static int link_admin_state_up(Link *link) {