mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
nspawn: log & return in a single statement
This commit is contained in:
parent
c490b6ddc2
commit
34e2897f51
|
@ -1837,10 +1837,8 @@ static int oci_seccomp_syscalls(const char *name, JsonVariant *v, JsonDispatchFl
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (strv_isempty(rule.names)) {
|
if (strv_isempty(rule.names))
|
||||||
json_log(e, flags, 0, "System call name list is empty.");
|
return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "System call name list is empty.");
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
STRV_FOREACH(i, rule.names) {
|
STRV_FOREACH(i, rule.names) {
|
||||||
int nr;
|
int nr;
|
||||||
|
|
Loading…
Reference in a new issue