summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basic/cgroup-util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 4fcff87dfa..0ebe570bb8 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -540,10 +540,7 @@ int cg_get_path(const char *controller, const char *path, const char *suffix, ch
else {
const char *dn;
- if (controller)
- dn = controller_to_dirname(controller);
- else
- dn = NULL;
+ dn = controller_to_dirname(controller);
r = join_path_legacy(dn, path, suffix, fs);
}