]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1438230
author2xsec <dh48.jeong@samsung.com>
Mon, 6 Aug 2018 05:03:22 +0000 (14:03 +0900)
committer2xsec <dh48.jeong@samsung.com>
Mon, 6 Aug 2018 05:03:22 +0000 (14:03 +0900)
Logically dead code

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/pam/pam_cgfs.c

index 285842946679745cf399252a6c4361d45e5623f2..bd928dc4d1ecbf54d26a9dcd273766ad2ad9b62d 100644 (file)
@@ -825,8 +825,6 @@ static char **cgv1_get_proc_mountinfo_controllers(char **klist, char **nlist, ch
                        return NULL;
                p++;
        }
-       if (!p)
-               return NULL;
 
        if (strncmp(p, "/sys/fs/cgroup/", 15) != 0)
                return NULL;