mirror of
https://github.com/systemd/systemd.git
synced 2025-09-09 17:44:49 +03:00
core/execute: simplify compile_bind_mounts()
It is not necessary to re-assign error code.
This commit is contained in:
@@ -2258,11 +2258,9 @@ static int compile_bind_mounts(
|
|||||||
}
|
}
|
||||||
|
|
||||||
r = strv_consume(&empty_directories, private_root);
|
r = strv_consume(&empty_directories, private_root);
|
||||||
if (r < 0) {
|
if (r < 0)
|
||||||
r = -ENOMEM;
|
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
STRV_FOREACH(suffix, context->directories[t].paths) {
|
STRV_FOREACH(suffix, context->directories[t].paths) {
|
||||||
char *s, *d;
|
char *s, *d;
|
||||||
|
Reference in New Issue
Block a user