From: Christian Brauner Date: Sat, 9 Dec 2017 19:00:40 +0000 (+0100) Subject: coverity: #1425857 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ed560ca5bbb2888a1db5ded4dd5d6cd497bdeaf;p=thirdparty%2Flxc.git coverity: #1425857 remove logically dead code Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 830dc5a94..195897e6d 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -766,8 +766,7 @@ static char **get_controllers(char **klist, char **nlist, char *line, int type) return NULL; p++; } - if (!p) - return NULL; + /* note - if we change how mountinfo works, then our caller * will need to verify /sys/fs/cgroup/ in this field */ if (strncmp(p, "/sys/fs/cgroup/", 15)) {