network: drop unnecessary family setting

It is already set in sd_rtnl_message_new_nexthop().
This commit is contained in:
Yu Watanabe
2021-02-17 02:06:26 +09:00
parent 735a3d73b7
commit fc80ed5f97
-4
View File
@@ -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,