mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
vz: fix syntax-check errors
Remove braces around single-statement blocks in vz_sdk.c
This commit is contained in:
parent
6de12b026b
commit
39618d4088
@ -2929,10 +2929,9 @@ int prlsdkAttachNet(virDomainObjPtr dom,
|
||||
ret = prlsdkAddNet(privdom->sdkdom, privconn, net, IS_CT(dom->def));
|
||||
if (ret == 0) {
|
||||
job = PrlVm_CommitEx(privdom->sdkdom, PVCF_DETACH_HDD_BUNDLE);
|
||||
if (PRL_FAILED(waitJob(job))) {
|
||||
if (PRL_FAILED(waitJob(job)))
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
@ -3027,10 +3026,9 @@ int prlsdkDetachNet(virDomainObjPtr dom,
|
||||
ret = prlsdkDelNetAdapter(privdom->sdkdom, idx);
|
||||
if (ret == 0) {
|
||||
job = PrlVm_CommitEx(privdom->sdkdom, PVCF_DETACH_HDD_BUNDLE);
|
||||
if (PRL_FAILED(waitJob(job))) {
|
||||
if (PRL_FAILED(waitJob(job)))
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user