]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: shorten code a bit
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Dec 2019 15:35:28 +0000 (16:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jan 2020 14:21:37 +0000 (15:21 +0100)
The return parameter here cannot be NULL, the bus call either succeeds
or fails but will never uceed and return an empty owner.

src/core/unit.c

index 7ea0e8adc9658656a10e625b42f9484d47ccd4ec..be92d975002de88a9c767fe9a42db56eb60abfa4 100644 (file)
@@ -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);