提交 50bdad66 编写于 作者: M Maxim Nestratov 提交者: Michal Privoznik

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: NMaxim Nestratov <mnestratov@parallels.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 2f36e694
...@@ -1350,7 +1350,6 @@ prlsdkLoadDomains(parallelsConnPtr privconn) ...@@ -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, ...@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册