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

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

index acdaf69e0681bea98508d56a1dd02ff0b6cdda12..05892cfee8b318411c841daf9b1e3c777823c0eb 100644 (file)
@@ -627,9 +627,6 @@ static bool am_single_threaded(void)
        }
 
        while ((direntp = readdir(dir))) {
-               if (!direntp)
-                       break;
-
                if (!strcmp(direntp->d_name, "."))
                        continue;