mirror of
https://github.com/systemd/systemd.git
synced 2025-03-11 20:58:27 +03:00
network: shorten code a bit
This commit is contained in:
parent
36b8ad085c
commit
ba7c4bd6f2
@ -822,9 +822,6 @@ static int link_handle_bound_by_list(Link *link) {
|
||||
|
||||
/* Update up or down state of interfaces which depend on this interface's carrier state. */
|
||||
|
||||
if (hashmap_isempty(link->bound_by_links))
|
||||
return 0;
|
||||
|
||||
HASHMAP_FOREACH(l, link->bound_by_links) {
|
||||
r = link_handle_bound_to_list(l);
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user