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

index cd5edd6ab6a631348d06c9b704a5fcb3a6cbb532..aed6d7b9694fc1f351e8074c1680692c536c4e71 100644 (file)
@@ -2091,9 +2091,6 @@ static int lxc_get_unused_loop_dev_legacy(char *loop_name)
                return -1;
 
        while ((dp = readdir(dir))) {
-               if (!dp)
-                       break;
-
                if (strncmp(dp->d_name, "loop", 4) != 0)
                        continue;