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:
parent
929f41c652
commit
a7774a8ccb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user