From: Yu Watanabe Date: Tue, 16 Feb 2021 17:05:28 +0000 (+0900) Subject: network: drop unnecessary family setting X-Git-Tag: v248-rc1~94^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc80ed5f976c6d148d4c3da1dad1bc9484f2a654;p=thirdparty%2Fsystemd.git network: drop unnecessary family setting It is already set in sd_rtnl_message_new_nexthop(). --- diff --git a/src/network/networkd-nexthop.c b/src/network/networkd-nexthop.c index ab0562e9e81..6143de11f3b 100644 --- a/src/network/networkd-nexthop.c +++ b/src/network/networkd-nexthop.c @@ -281,10 +281,6 @@ static int nexthop_configure(NextHop *nexthop, Link *link) { r = netlink_message_append_in_addr_union(req, NHA_GATEWAY, nexthop->family, &nexthop->gw); if (r < 0) return log_link_error_errno(link, r, "Could not append NHA_GATEWAY attribute: %m"); - - r = sd_rtnl_message_nexthop_set_family(req, nexthop->family); - if (r < 0) - return log_link_error_errno(link, r, "Could not set nexthop family: %m"); } r = netlink_call_async(link->manager->rtnl, NULL, req, nexthop_handler,