diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-08-16 18:41:00 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-08-17 07:08:37 +0900 |
commit | b1358f03627210d4aab08afd8d9d3208d0404405 (patch) | |
tree | a215f8dce5e9857cc22ae4bb6da4996410e238b6 /src | |
parent | eab62c01ef81adb85dbbb561b3102d1cf960f5b6 (diff) | |
download | systemd-b1358f03627210d4aab08afd8d9d3208d0404405.tar.gz |
run: simplification
Diffstat (limited to 'src')
-rw-r--r-- | src/run/run.c | 6 |
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) { |