From: Zbigniew Jędrzejewski-Szmek Date: Thu, 9 May 2024 08:57:54 +0000 (+0200) Subject: core: simplify variable declaration X-Git-Tag: v257-rc1~1191^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd8fc859afc2e7cbc7850e2c062f8778cc93be2;p=thirdparty%2Fsystemd.git core: simplify variable declaration It doesn't matter much, but right below there is a second declaration which already uses this style, and the mismatch was grating. --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 20fa43af9e3..5439ad52b5b 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -1370,8 +1370,7 @@ int bus_unit_method_get_processes(sd_bus_message *message, void *userdata, sd_bu if (r < 0) return r; - CGroupRuntime *crt; - crt = unit_get_cgroup_runtime(u); + CGroupRuntime *crt = unit_get_cgroup_runtime(u); if (crt && crt->cgroup_path) { r = append_cgroup(reply, crt->cgroup_path, pids); if (r < 0)