From d5590c8c70fd3dd817fcd9f4e93dffc08711d41c Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 9 Dec 2017 19:51:55 +0100 Subject: [PATCH] coverity: #1425860 remove logically dead code Signed-off-by: Christian Brauner --- src/lxc/lxccontainer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 9e26a76e5..9e5c64f53 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -4192,8 +4192,6 @@ static bool remove_all_snapshots(const char *path) return false; } while ((direntp = readdir(dir))) { - if (!direntp) - break; if (!strcmp(direntp->d_name, ".")) continue; if (!strcmp(direntp->d_name, ".."))