mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
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:
parent
4f43cbe66c
commit
cbd8fc859a
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue