From: Zbigniew Jędrzejewski-Szmek Date: Fri, 3 Oct 2014 23:16:11 +0000 (-0400) Subject: core/namespace: remove invalid check X-Git-Tag: v217~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1775f1ebc4a8e9e0e2e4a9af3e97e1408c9cb335;p=thirdparty%2Fsystemd.git core/namespace: remove invalid check root cannot be NULL here, because it was allocated with alloca. CID #1237769. --- diff --git a/src/core/namespace.c b/src/core/namespace.c index f76d3891c38..f86092f6b1b 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -341,11 +341,8 @@ fail: unlink(busnode); } - if (root) { - umount(root); - rmdir(root); - } - + umount(root); + rmdir(root); rmdir(temporary_mount); return r;