]> 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>
Wed, 7 Feb 2018 11:21:14 +0000 (12:21 +0100)
remove logically dead code

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

index 80ff1f56c1033903b1d74e5c9836f606868fdea5..928bda3c853cda09193296ee70f4dd0bb2be1702 100644 (file)
@@ -528,9 +528,6 @@ static bool am_single_threaded(void)
        }
 
        while ((direntp = readdir(dir))) {
-               if (!direntp)
-                       break;
-
                if (!strcmp(direntp->d_name, "."))
                        continue;