mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +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
1 changed files with 0 additions and 3 deletions
|
|
@ -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));
|
||||
if (status) {
|
||||
pr_err("CHECKPOINT_DEVICES failed with %s\n", msg_buf);
|
||||
goto interrupt;
|
||||
}
|
||||
|
||||
interrupt:
|
||||
int_ret = interrupt_restore_thread(restore_tid, &save_sigset);
|
||||
|
||||
return status != 0 ? -1 : int_ret;
|
||||
}
|
||||
CR_PLUGIN_REGISTER_HOOK(CR_PLUGIN_HOOK__CHECKPOINT_DEVICES, cuda_plugin_checkpoint_devices);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue