core/execute: simplify compile_bind_mounts()

It is not necessary to re-assign error code.
This commit is contained in:
Yu Watanabe 2018-02-12 16:16:58 +09:00
parent 30ffb010ff
commit a635a7aec6
1 changed files with 1 additions and 3 deletions

View 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) {