]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
pam_cgfs: fix Logically dead code. 2384/head
authorDonghwa Jeong <dh48.jeong@samsung.com>
Fri, 8 Jun 2018 05:16:53 +0000 (14:16 +0900)
committerDonghwa Jeong <dh48.jeong@samsung.com>
Fri, 8 Jun 2018 05:16:53 +0000 (14:16 +0900)
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
src/lxc/pam/pam_cgfs.c

index 5c272b0e80be84242b597de95dde80a491f873f2..d5196f8a05012d6976b120c5a34b781eaea34926 100644 (file)
@@ -525,9 +525,6 @@ static int recursive_rmdir(char *dirname)
                struct stat st;
                char *pathname;
 
-               if (!direntp)
-                       break;
-
                if (!strcmp(direntp->d_name, ".") ||
                    !strcmp(direntp->d_name, ".."))
                        continue;