chiark / gitweb /
core/namespace: remove invalid check
[elogind.git] / src / core / namespace.c
index f76d3891c387678cb4bac5f4b75a2588341b9d39..f86092f6b1b259b97c1365b7e0eefcdf101c18ce 100644 (file)
@@ -341,11 +341,8 @@ fail:
                 unlink(busnode);
         }
 
-        if (root) {
-                umount(root);
-                rmdir(root);
-        }
-
+        umount(root);
+        rmdir(root);
         rmdir(temporary_mount);
 
         return r;