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://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1775f1ebc4a8e9e0e2e4a9af3e97e1408c9cb335;p=elogind.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 f76d3891c..f86092f6b 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;