From: Yu Watanabe Date: Thu, 20 Jan 2022 19:46:14 +0000 (+0900) Subject: resolve: drop redundant call of link_allocate_scopes() and link_add_rrs() X-Git-Tag: v251-rc1~486^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=605bb1634ba6929474e67a200acd8214e148b5e4;p=thirdparty%2Fsystemd.git resolve: drop redundant call of link_allocate_scopes() and link_add_rrs() In `manager_process_link()`, the function `link_update()` is called just after `link_process_rtnl()`, and `link_update()` also calls `link_allocate_scopes()` and `link_add_rrs()`. Hence, the calls in `link_process_rtnl()` are redundant. --- diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index 202e46ff506..344329f1899 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -247,9 +247,6 @@ int link_process_rtnl(Link *l, sd_netlink_message *m) { return r; } - link_allocate_scopes(l); - link_add_rrs(l, false); - return 0; }