mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
networkd: ipv4ll - drop unnecessary get_address()
This commit is contained in:
parent
2e5b17d013
commit
3c072310d5
@ -471,14 +471,6 @@ static int link_enter_set_routes(Link *link) {
|
||||
|
||||
if (link->ipv4ll && !link->dhcp_lease) {
|
||||
_cleanup_route_free_ Route *route = NULL;
|
||||
struct in_addr addr;
|
||||
|
||||
r = sd_ipv4ll_get_address(link->ipv4ll, &addr);
|
||||
if (r < 0 && r != -ENOENT) {
|
||||
log_warning_link(link, "IPV4LL error: no address: %s",
|
||||
strerror(-r));
|
||||
return r;
|
||||
}
|
||||
|
||||
if (r != -ENOENT) {
|
||||
r = route_new_dynamic(&route, RTPROT_STATIC);
|
||||
|
Loading…
Reference in New Issue
Block a user