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>
This commit is contained in:
parent
eb24a23e15
commit
650126f838
@ -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;
|
||||
}
|
||||
|
@ -1349,7 +1349,6 @@ int whpx_init_vcpu(CPUState *cpu)
|
||||
(void)migrate_add_blocker(whpx_migration_blocker, &local_error);
|
||||
if (local_error) {
|
||||
error_report_err(local_error);
|
||||
migrate_del_blocker(whpx_migration_blocker);
|
||||
error_free(whpx_migration_blocker);
|
||||
ret = -EINVAL;
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user