mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
cuda: remove redundant goto label
The `goto interrupt` label is unnecessary as the code directly returns after `cuda_process_checkpoint_action()`. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
3284a83529
commit
bc3e4e880a
@ -395,12 +395,9 @@ int cuda_plugin_checkpoint_devices(int pid)
|
|||||||
status = cuda_process_checkpoint_action(pid, ACTION_CHECKPOINT, 0, msg_buf, sizeof(msg_buf));
|
status = cuda_process_checkpoint_action(pid, ACTION_CHECKPOINT, 0, msg_buf, sizeof(msg_buf));
|
||||||
if (status) {
|
if (status) {
|
||||||
pr_err("CHECKPOINT_DEVICES failed with %s\n", msg_buf);
|
pr_err("CHECKPOINT_DEVICES failed with %s\n", msg_buf);
|
||||||
goto interrupt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interrupt:
|
|
||||||
int_ret = interrupt_restore_thread(restore_tid, &save_sigset);
|
int_ret = interrupt_restore_thread(restore_tid, &save_sigset);
|
||||||
|
|
||||||
return status != 0 ? -1 : int_ret;
|
return status != 0 ? -1 : int_ret;
|
||||||
}
|
}
|
||||||
CR_PLUGIN_REGISTER_HOOK(CR_PLUGIN_HOOK__CHECKPOINT_DEVICES, cuda_plugin_checkpoint_devices);
|
CR_PLUGIN_REGISTER_HOOK(CR_PLUGIN_HOOK__CHECKPOINT_DEVICES, cuda_plugin_checkpoint_devices);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user