summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-objects.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-04-23 06:57:00 +0200
committerLennart Poettering <lennart@poettering.net>2014-04-23 19:06:38 +0200
commit1b02f301834ffe9211e3cc8f83ca6fd3c37ad508 (patch)
tree1b1ef338cd1a2040a34ac27ff33c51a66b34133f /src/libsystemd/sd-bus/bus-objects.c
parentc7fdf44d08e1217d40dc092fb90a65978a0f541f (diff)
bus: simplification
Diffstat (limited to 'src/libsystemd/sd-bus/bus-objects.c')
-rw-r--r--src/libsystemd/sd-bus/bus-objects.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c
index 539cf2aad1..8b12e89164 100644
--- a/src/libsystemd/sd-bus/bus-objects.c
+++ b/src/libsystemd/sd-bus/bus-objects.c
@@ -2377,9 +2377,7 @@ _public_ int sd_bus_emit_interfaces_added_strv(sd_bus *bus, const char *path, ch
do {
bus->nodes_modified = false;
-
- if (m)
- m = sd_bus_message_unref(m);
+ m = sd_bus_message_unref(m);
r = sd_bus_message_new_signal(bus, &m, path, "org.freedesktop.DBus.ObjectManager", "InterfacesAdded");
if (r < 0)