vz: remove redundant variable in prlsdkHandleVmAddedEvent

This commit is contained in:
Nikolay Shirokovskiy 2016-07-20 18:00:31 +03:00 committed by Maxim Nestratov
parent 2abef7fb55
commit 3d211da27b

View File

@ -2036,7 +2036,6 @@ prlsdkHandleVmAddedEvent(vzDriverPtr driver,
unsigned char *uuid)
{
virDomainObjPtr dom = NULL;
PRL_HANDLE sdkdom = PRL_INVALID_HANDLE;
if (!(dom = virDomainObjListFindByUUID(driver->domains, uuid)) &&
!(dom = prlsdkAddDomainByUUID(driver, uuid)))
@ -2048,7 +2047,6 @@ prlsdkHandleVmAddedEvent(vzDriverPtr driver,
cleanup:
if (dom)
virObjectUnlock(dom);
PrlHandle_Free(sdkdom);
return;
}