From cbd8fc859afc2e7cbc7850e2c062f8778cc93be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 9 May 2024 10:57:54 +0200 Subject: [PATCH] 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. --- src/core/dbus-unit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 20fa43af9e..5439ad52b5 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)