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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-05-09 10:57:54 +02:00
parent 4f43cbe66c
commit cbd8fc859a

View file

@ -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)