]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425777
authorDonghwa Jeong <dh48.jeong@samsung.com>
Fri, 8 Jun 2018 02:11:03 +0000 (11:11 +0900)
committerDonghwa Jeong <dh48.jeong@samsung.com>
Fri, 8 Jun 2018 02:11:03 +0000 (11:11 +0900)
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
src/lxc/lxccontainer.c

index 04a6050f1a256259f26e7c01ac5511d82378167e..1ce408009d9409afa46c642cf673d5d5c5e8197f 100644 (file)
@@ -2777,9 +2777,6 @@ static bool has_snapshots(struct lxc_container *c)
        if (!dir)
                return false;
        while ((direntp = readdir(dir))) {
-               if (!direntp)
-                       break;
-
                if (!strcmp(direntp->d_name, "."))
                        continue;