diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2018-09-19 02:32:23 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2018-09-19 21:45:18 +0200 |
commit | e9c96052939105a6ff5a87d3e3707524a040b2eb (patch) | |
tree | cd31db83a3bd8abd28edc078bff5acfaeec00fee /src/network/networkd-dhcp6.c | |
parent | networkd-dhcp6: Set one unreachable route per DHCPv6 delegated prefix (diff) | |
download | systemd-e9c96052939105a6ff5a87d3e3707524a040b2eb.tar.xz systemd-e9c96052939105a6ff5a87d3e3707524a040b2eb.zip |
networkd-dhcp6: Remove functions whose output is not used
Remove dhcp6_reset_pd_prefix_network() that returns the network, but
whose output is not used anywhere.
Diffstat (limited to 'src/network/networkd-dhcp6.c')
-rw-r--r-- | src/network/networkd-dhcp6.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c index c0572add0a..c044c02528 100644 --- a/src/network/networkd-dhcp6.c +++ b/src/network/networkd-dhcp6.c @@ -103,14 +103,6 @@ static int dhcp6_pd_prefix_assign(Link *link, struct in6_addr *prefix, return sd_radv_start(radv); } -static Network *dhcp6_reset_pd_prefix_network(Link *link) { - assert(link); - assert(link->manager); - assert(link->manager->networks); - - return link->manager->networks; -} - static int dhcp6_route_remove_cb(sd_netlink *nl, sd_netlink_message *m, void *userdata) { Link *l = userdata; @@ -136,7 +128,6 @@ static int dhcp6_lease_pd_prefix_lost(sd_dhcp6_client *client, Link* link) { if (r < 0) return r; - dhcp6_reset_pd_prefix_network(link); sd_dhcp6_lease_reset_pd_prefix_iter(lease); while (sd_dhcp6_lease_get_pd(lease, &pd_prefix.in6, &pd_prefix_len, @@ -289,7 +280,6 @@ static int dhcp6_lease_pd_prefix_acquired(sd_dhcp6_client *client, Link *link) { if (r < 0) return r; - dhcp6_reset_pd_prefix_network(link); sd_dhcp6_lease_reset_pd_prefix_iter(lease); while (sd_dhcp6_lease_get_pd(lease, &pd_prefix.in6, &pd_prefix_len, |