From a635a7aec6636f72cbabb980b80fd3d8c8a3c51c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 12 Feb 2018 16:16:58 +0900 Subject: [PATCH] core/execute: simplify compile_bind_mounts() It is not necessary to re-assign error code. --- src/core/execute.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/execute.c b/src/core/execute.c index bebd4eca80..0d6656d503 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) {