mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
libxlDoMigrateReceive: Drop useless check for !vm
In the cleanup path, @vm cannot be possibly NULL. If it were so, we would receive SIGSEGV much earlier. At the beginning of the function we do libxlDomainObjBeginJob(.., vm, ..); and so on. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7584d992b8
commit
b3df357da6
@ -296,7 +296,7 @@ libxlDoMigrateReceive(void *opaque)
|
|||||||
libxlDomainObjEndJob(driver, vm);
|
libxlDomainObjEndJob(driver, vm);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (remove_dom && vm) {
|
if (remove_dom) {
|
||||||
virDomainObjListRemove(driver->domains, vm);
|
virDomainObjListRemove(driver->domains, vm);
|
||||||
vm = NULL;
|
vm = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user