From: Lennart Poettering Date: Mon, 23 Dec 2019 15:35:28 +0000 (+0100) Subject: core: shorten code a bit X-Git-Tag: v245-rc1~120^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17bda1f19d5394290d7552d9db0c423b207dc40a;p=thirdparty%2Fsystemd.git core: shorten code a bit The return parameter here cannot be NULL, the bus call either succeeds or fails but will never uceed and return an empty owner. --- diff --git a/src/core/unit.c b/src/core/unit.c index 7ea0e8adc96..be92d975002 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -3232,8 +3232,6 @@ static int get_name_owner_handler(sd_bus_message *message, void *userdata, sd_bu return 0; } - new_owner = empty_to_null(new_owner); - if (UNIT_VTABLE(u)->bus_name_owner_change) UNIT_VTABLE(u)->bus_name_owner_change(u, NULL, new_owner);