coverity: #1425860

remove logically dead code Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e398e96c
...@@ -4059,8 +4059,6 @@ static bool remove_all_snapshots(const char *path) ...@@ -4059,8 +4059,6 @@ static bool remove_all_snapshots(const char *path)
return false; return false;
} }
while ((direntp = readdir(dir))) { while ((direntp = readdir(dir))) {
if (!direntp)
break;
if (!strcmp(direntp->d_name, ".")) if (!strcmp(direntp->d_name, "."))
continue; continue;
if (!strcmp(direntp->d_name, "..")) if (!strcmp(direntp->d_name, ".."))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment