summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-08-16 18:41:00 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-17 07:08:37 +0900
commitb1358f03627210d4aab08afd8d9d3208d0404405 (patch)
treea215f8dce5e9857cc22ae4bb6da4996410e238b6 /src/run
parenteab62c01ef81adb85dbbb561b3102d1cf960f5b6 (diff)
downloadsystemd-b1358f03627210d4aab08afd8d9d3208d0404405.tar.gz
run: simplification
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c6
1 files changed, 1 insertions, 5 deletions
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) {