1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

core/namespace: remove invalid check

root cannot be NULL here, because it was allocated with alloca.

CID #1237769.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-10-03 19:16:11 -04:00
parent 7057bd9931
commit 1775f1ebc4

View File

@ -341,11 +341,8 @@ fail:
unlink(busnode);
}
if (root) {
umount(root);
rmdir(root);
}
umount(root);
rmdir(root);
rmdir(temporary_mount);
return r;