diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-08 15:04:18 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-08 15:04:18 +0200 |
commit | 5dbec9bd3223c908949c20a97d6d280c231995b4 (patch) | |
tree | e1367be2aeb8e01ef7f6061c5128616944bf384a /src/network/networkd-link-bus.c | |
parent | sd-bus: make sd_bus_is_{ready,open} accept NULL (diff) | |
download | systemd-5dbec9bd3223c908949c20a97d6d280c231995b4.tar.xz systemd-5dbec9bd3223c908949c20a97d6d280c231995b4.zip |
networkd: simplify sd_bus_is_ready() checks
Also add "system" in the messages, because we set the internal value,
and are just skipping the setting of the external value, so the message
could be confusing without that clarification.
Diffstat (limited to 'src/network/networkd-link-bus.c')
-rw-r--r-- | src/network/networkd-link-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c index 841d76b461..3311dafd6a 100644 --- a/src/network/networkd-link-bus.c +++ b/src/network/networkd-link-bus.c @@ -854,7 +854,7 @@ int link_send_changed_strv(Link *link, char **properties) { assert(link->manager); assert(properties); - if (!link->manager->bus || sd_bus_is_ready(link->manager->bus) <= 0) + if (sd_bus_is_ready(link->manager->bus) <= 0) return 0; p = link_bus_path(link); |