From: Zbigniew Jędrzejewski-Szmek Date: Fri, 3 Oct 2014 23:17:56 +0000 (-0400) Subject: core/namespace: remove invalid check X-Git-Tag: v217~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d267c5aa3d0fe4960165a1e1c00a840eef8b7d00;p=thirdparty%2Fsystemd.git core/namespace: remove invalid check dir cannot be NULL here, because it was allocated with alloca. CID #1237768. --- diff --git a/src/core/namespace.c b/src/core/namespace.c index f86092f6b1b..c2215090a9d 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -263,11 +263,8 @@ fail: if (devmqueue) umount(devmqueue); - if (dev) { - umount(dev); - rmdir(dev); - } - + umount(dev); + rmdir(dev); rmdir(temporary_mount); return r;