]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425860
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 9 Dec 2017 18:51:55 +0000 (19:51 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 17 Dec 2017 15:33:47 +0000 (16:33 +0100)
remove logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index 05892cfee8b318411c841daf9b1e3c777823c0eb..690527af871b43fb2f85e609156c4718cc1fb325 100644 (file)
@@ -3889,8 +3889,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, ".."))