From b1358f03627210d4aab08afd8d9d3208d0404405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 16 Aug 2022 18:41:00 +0200 Subject: run: simplification --- src/run/run.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/run') diff --git a/src/run/run.c b/src/run/run.c index 2ae629f595..4cb4478cf8 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -643,11 +643,7 @@ static int transient_unit_set_properties(sd_bus_message *m, UnitType t, char **p return bus_log_create_error(r); } - r = bus_append_unit_property_assignment_many(m, t, properties); - if (r < 0) - return r; - - return 0; + return bus_append_unit_property_assignment_many(m, t, properties); } static int transient_cgroup_set_properties(sd_bus_message *m) { -- cgit v1.2.1