network: shorten code a bit

This commit is contained in:
Yu Watanabe
2024-07-31 06:47:33 +09:00
parent 36b8ad085c
commit ba7c4bd6f2
-3
View File
@@ -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)