]> 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>
Tue, 12 Dec 2017 10:55:55 +0000 (11:55 +0100)
remove logically dead code

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

index 9e26a76e5648989a69bff93af1fae0171693e41c..9e5c64f533ceeaadb3dc5928592c1b2eea4b55ac 100644 (file)
@@ -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, ".."))