Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx> --- src/vz/vz_sdk.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index e7c1676df9..d76eae24c9 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -4841,7 +4841,6 @@ int prlsdkMigrate(virDomainObjPtr dom, virURIPtr uri, const char *dname, unsigned int flags) { - int ret = -1; vzDomObjPtr privdom = dom->privateData; PRL_HANDLE job = PRL_INVALID_HANDLE; char uuidstr[VIR_UUID_STRING_BRACED_BUFLEN]; @@ -4861,12 +4860,9 @@ int prlsdkMigrate(virDomainObjPtr dom, virURIPtr uri, ); if (PRL_FAILED(waitDomainJob(job, dom))) - goto cleanup; - - ret = 0; + return -1; - cleanup: - return ret; + return 0; } int prlsdkSetCpuCount(virDomainObjPtr dom, unsigned int count) -- 2.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list