From 409842faff0e7331dafcb8a73f98576a25615bb8 Mon Sep 17 00:00:00 2001 From: Donghwa Jeong Date: Fri, 8 Jun 2018 11:20:08 +0900 Subject: [PATCH] coverity: #1425841 Signed-off-by: Donghwa Jeong --- src/lxc/utils.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index aed6d7b96..12f2cd449 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -85,9 +85,6 @@ static int _recursive_rmdir(const char *dirname, dev_t pdev, struct stat mystat; int rc; - if (!direntp) - break; - if (!strcmp(direntp->d_name, ".") || !strcmp(direntp->d_name, "..")) continue;