From: Christian Brauner Date: Sat, 9 Dec 2017 19:00:40 +0000 (+0100) Subject: coverity: #1425857 X-Git-Tag: lxc-2.0.10~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53ee63017e89f7ff62aff6dfdc9d85bfe4559d22;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 4049f23f1..c34303930 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -757,8 +757,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)) {