]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425857
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 9 Dec 2017 19:00:40 +0000 (20:00 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 Dec 2017 12:36:07 +0000 (13:36 +0100)
remove logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 830dc5a94109b85c599d2337620e69e6cadf1a04..195897e6d2a2a720aa12612b66a190885430784e 100644 (file)
@@ -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)) {