From a55f31bda279a36581eae84bb73c064ed101600e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 9 Dec 2017 20:00:40 +0100 Subject: [PATCH] coverity: #1425857 remove logically dead code Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) {