From 1b02f301834ffe9211e3cc8f83ca6fd3c37ad508 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Apr 2014 06:57:00 +0200 Subject: [PATCH] bus: simplification --- src/libsystemd/sd-bus/bus-objects.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c index 539cf2aad18..8b12e891647 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)