From: Yu Watanabe Date: Mon, 12 Feb 2018 07:16:58 +0000 (+0900) Subject: core/execute: simplify compile_bind_mounts() X-Git-Tag: v238~79^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a635a7aec6636f72cbabb980b80fd3d8c8a3c51c;p=thirdparty%2Fsystemd.git core/execute: simplify compile_bind_mounts() It is not necessary to re-assign error code. --- diff --git a/src/core/execute.c b/src/core/execute.c index bebd4eca805..0d6656d503f 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2258,10 +2258,8 @@ static int compile_bind_mounts( } r = strv_consume(&empty_directories, private_root); - if (r < 0) { - r = -ENOMEM; + if (r < 0) goto finish; - } } STRV_FOREACH(suffix, context->directories[t].paths) {