]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: shorten code a bit 33878/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Jul 2024 18:55:37 +0000 (03:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Jul 2024 21:47:33 +0000 (06:47 +0900)
src/network/networkd-link.c

index 9ce75361fdcabc4edc0152183969a2971aa73614..7dcc641d7e027fd96eefa19291e603dd8bfd912e 100644 (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)