]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/execute: simplify compile_bind_mounts()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Feb 2018 07:16:58 +0000 (16:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Feb 2018 00:05:35 +0000 (09:05 +0900)
It is not necessary to re-assign error code.

src/core/execute.c

index bebd4eca805eaa030b9f422922330be729032f83..0d6656d503f052c3a4f9bb7da13873e7637fac2f 100644 (file)
@@ -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) {