summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorreverendhomer <mk.43.ecko@gmail.com>2015-09-03 11:34:47 +0300
committerreverendhomer <mk.43.ecko@gmail.com>2015-09-03 11:34:47 +0300
commit99d3888a1996e100f6bf57dd3281bbb8947da53d (patch)
tree9f25e978b511e294c9f55dd6c0d9ed4c99e1459d /src/basic
parentf0ff5bb88ca8ebfe07d986c51d3a6dba667db908 (diff)
cg_get_path: Removed unreachable statement
controller cannot be NULL because if-statement in L509 has return Coverity #1322379
Diffstat (limited to 'src/basic')
-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);
}