remove logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-12-09 19:51:55 +01:00
parent f54f8d0b58
commit d5590c8c70
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -4192,8 +4192,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, ".."))