1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-30 17:18:08 +03:00

core/execute: remove unneeded brackets

I did not merge the if-s, since I think it's easier to read
in the current form with those long socketpair() calls.
This commit is contained in:
Mike Yuan 2023-12-20 21:11:26 +08:00
parent 929f41c652
commit a7774a8ccb
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -2094,15 +2094,13 @@ static int exec_shared_runtime_make(
return r;
}
if (exec_needs_network_namespace(c)) {
if (exec_needs_network_namespace(c))
if (socketpair(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0, netns_storage_socket) < 0)
return -errno;
}
if (exec_needs_ipc_namespace(c)) {
if (exec_needs_ipc_namespace(c))
if (socketpair(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0, ipcns_storage_socket) < 0)
return -errno;
}
r = exec_shared_runtime_add(m, id, &tmp_dir, &var_tmp_dir, netns_storage_socket, ipcns_storage_socket, ret);
if (r < 0)