]> 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>
Sun, 17 Dec 2017 15:34:08 +0000 (16:34 +0100)
remove logically dead code

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

index 4049f23f10efb778094970ba5a0e3c6a0909783f..c343039301b94c700f32fc17f59fec8b507d4788 100644 (file)
@@ -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)) {