mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00: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);
|
||||
|
||||
cleanup:
|
||||
if (remove_dom && vm) {
|
||||
if (remove_dom) {
|
||||
virDomainObjListRemove(driver->domains, vm);
|
||||
vm = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user