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.
This commit is contained in:
Lennart Poettering
2020-01-06 15:21:37 +01:00
parent a54654ba70
commit 17bda1f19d
-2
View 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);