Skip to content

Commit 650126f

Browse files
author
Markus Armbruster
committed
whpx nvmm: Drop useless migrate_del_blocker()
There is nothing to delete after migrate_add_blocker() failed. Trying anyway is safe, but useless. Don't. Cc: Sunil Muthuswamy <[email protected]> Cc: Kamil Rytarowski <[email protected]> Cc: Reinoud Zandijk <[email protected]> Signed-off-by: Markus Armbruster <[email protected]> Message-Id: <[email protected]> Reviewed-by: Reinoud Zandijk <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]>
1 parent eb24a23 commit 650126f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

target/i386/nvmm/nvmm-all.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,6 @@ nvmm_init_vcpu(CPUState *cpu)
929929
(void)migrate_add_blocker(nvmm_migration_blocker, &local_error);
930930
if (local_error) {
931931
error_report_err(local_error);
932-
migrate_del_blocker(nvmm_migration_blocker);
933932
error_free(nvmm_migration_blocker);
934933
return -EINVAL;
935934
}

target/i386/whpx/whpx-all.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,6 @@ int whpx_init_vcpu(CPUState *cpu)
13491349
(void)migrate_add_blocker(whpx_migration_blocker, &local_error);
13501350
if (local_error) {
13511351
error_report_err(local_error);
1352-
migrate_del_blocker(whpx_migration_blocker);
13531352
error_free(whpx_migration_blocker);
13541353
ret = -EINVAL;
13551354
goto error;

0 commit comments

Comments
 (0)