mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
parallels_sdk.c: minor cleanup
Fix indentation in prlsdkGetNetInf()o, remove unnecessary error message in prlsdkDomainChangeState(), remove unnecessary job freeing in prlsdkLoadDomains(). Signed-off-by: Maxim Nestratov <mnestratov@parallels.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
2f36e6944e
commit
50bdad6678
@ -701,7 +701,7 @@ prlsdkGetNetInfo(PRL_HANDLE netAdapter, virDomainNetDefPtr net, bool isCt)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
pret = PrlVmDevNet_GetHostInterfaceName(netAdapter, net->ifname, &buflen);
|
pret = PrlVmDevNet_GetHostInterfaceName(netAdapter, net->ifname, &buflen);
|
||||||
prlsdkCheckRetGoto(pret, cleanup);
|
prlsdkCheckRetGoto(pret, cleanup);
|
||||||
|
|
||||||
if (isCt && netAdapterIndex == (PRL_UINT32) -1) {
|
if (isCt && netAdapterIndex == (PRL_UINT32) -1) {
|
||||||
/* venet devices don't have mac address and
|
/* venet devices don't have mac address and
|
||||||
@ -1350,7 +1350,6 @@ prlsdkLoadDomains(parallelsConnPtr privconn)
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
PrlHandle_Free(result);
|
PrlHandle_Free(result);
|
||||||
PrlHandle_Free(job);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1730,8 +1729,6 @@ prlsdkDomainChangeState(virDomainPtr domain,
|
|||||||
|
|
||||||
pdom = dom->privateData;
|
pdom = dom->privateData;
|
||||||
pret = chstate(privconn, pdom->sdkdom);
|
pret = chstate(privconn, pdom->sdkdom);
|
||||||
virReportError(VIR_ERR_OPERATION_FAILED,
|
|
||||||
_("Can't change domain state: %d"), pret);
|
|
||||||
if (PRL_FAILED(pret)) {
|
if (PRL_FAILED(pret)) {
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user