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:
Michal Privoznik 2016-08-03 14:48:01 +02:00
parent 7584d992b8
commit b3df357da6

View File

@ -296,7 +296,7 @@ libxlDoMigrateReceive(void *opaque)
libxlDomainObjEndJob(driver, vm);
cleanup:
if (remove_dom && vm) {
if (remove_dom) {
virDomainObjListRemove(driver->domains, vm);
vm = NULL;
}