The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2384

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Hello,

fix "Logically dead code."

Thanks.

Signed-off-by: Donghwa Jeong <dh48.je...@samsung.com>
From 8c440b3af04eb872d252141884498caa93ae9105 Mon Sep 17 00:00:00 2001
From: Donghwa Jeong <dh48.je...@samsung.com>
Date: Fri, 8 Jun 2018 14:16:53 +0900
Subject: [PATCH] pam_cgfs: fix Logically dead code.

Signed-off-by: Donghwa Jeong <dh48.je...@samsung.com>
---
 src/lxc/pam/pam_cgfs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lxc/pam/pam_cgfs.c b/src/lxc/pam/pam_cgfs.c
index 5c272b0e8..d5196f8a0 100644
--- a/src/lxc/pam/pam_cgfs.c
+++ b/src/lxc/pam/pam_cgfs.c
@@ -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;
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to