chiark / gitweb /
core/namespace: remove invalid check
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 Oct 2014 23:16:11 +0000 (19:16 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 4 Oct 2014 00:42:09 +0000 (20:42 -0400)
root cannot be NULL here, because it was allocated with alloca.

CID #1237769.

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;