aboutsummaryrefslogtreecommitdiff
path: root/target/i386/nvmm
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-07-20 14:54:00 +0200
committerMarkus Armbruster <armbru@redhat.com>2021-08-26 17:15:28 +0200
commit650126f838f763fe02f5b41584fd9f13cb8cbf13 (patch)
tree6b053eb672b30367480aaf6cd6d267cd361a187e /target/i386/nvmm
parenteb24a23e15580c2c6ab144a6bbf7f825506849ae (diff)
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 <sunilmut@microsoft.com> Cc: Kamil Rytarowski <kamil@netbsd.org> Cc: Reinoud Zandijk <reinoud@netbsd.org> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210720125408.387910-9-armbru@redhat.com> Reviewed-by: Reinoud Zandijk <reinoud@NetBSD.org> Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'target/i386/nvmm')
-rw-r--r--target/i386/nvmm/nvmm-all.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/i386/nvmm/nvmm-all.c b/target/i386/nvmm/nvmm-all.c
index dfa690d65d..7bb0d9e30e 100644
--- a/target/i386/nvmm/nvmm-all.c
+++ b/target/i386/nvmm/nvmm-all.c
@@ -929,7 +929,6 @@ nvmm_init_vcpu(CPUState *cpu)
(void)migrate_add_blocker(nvmm_migration_blocker, &local_error);
if (local_error) {
error_report_err(local_error);
- migrate_del_blocker(nvmm_migration_blocker);
error_free(nvmm_migration_blocker);
return -EINVAL;
}