mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-29 14:11:54 +00:00
start: use goto instead of simple return
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
5b7f756a67
commit
341ed84c47
@ -1667,7 +1667,7 @@ static int lxc_spawn(struct lxc_handler *handler)
|
|||||||
/* Run any host-side start hooks */
|
/* Run any host-side start hooks */
|
||||||
if (run_lxc_hooks(name, "start-host", conf, NULL)) {
|
if (run_lxc_hooks(name, "start-host", conf, NULL)) {
|
||||||
ERROR("Failed to run lxc.hook.start-host for container \"%s\".", name);
|
ERROR("Failed to run lxc.hook.start-host for container \"%s\".", name);
|
||||||
return -1;
|
goto out_delete_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tell the child to complete its initialization and wait for it to exec
|
/* Tell the child to complete its initialization and wait for it to exec
|
||||||
@ -1677,7 +1677,7 @@ static int lxc_spawn(struct lxc_handler *handler)
|
|||||||
* value, causing us to error out).
|
* value, causing us to error out).
|
||||||
*/
|
*/
|
||||||
if (lxc_sync_barrier_child(handler, LXC_SYNC_READY_START))
|
if (lxc_sync_barrier_child(handler, LXC_SYNC_READY_START))
|
||||||
return -1;
|
goto out_delete_net;
|
||||||
|
|
||||||
if (lxc_network_recv_name_and_ifindex_from_child(handler) < 0) {
|
if (lxc_network_recv_name_and_ifindex_from_child(handler) < 0) {
|
||||||
ERROR("Failed to receive names and ifindices for network "
|
ERROR("Failed to receive names and ifindices for network "
|
||||||
|
Loading…
Reference in New Issue
Block a user