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-manager-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-manager-bus.c')
-rw-r--r-- | src/network/networkd-manager-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-manager-bus.c b/src/network/networkd-manager-bus.c index a08dff58e7..138d765414 100644 --- a/src/network/networkd-manager-bus.c +++ b/src/network/networkd-manager-bus.c @@ -339,7 +339,7 @@ int manager_send_changed_strv(Manager *manager, char **properties) { assert(manager); assert(properties); - if (!manager->bus || sd_bus_is_ready(manager->bus) <= 0) + if (sd_bus_is_ready(manager->bus) <= 0) return 0; return sd_bus_emit_properties_changed_strv( |