mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
Add endjob label to qemuDomainMemoryStats
Reduce the indentation level.
This commit is contained in:
parent
c09e1729df
commit
4bcdd9cc9e
@ -11577,6 +11577,7 @@ qemuDomainMemoryStats(virDomainPtr dom,
|
||||
unsigned int flags)
|
||||
{
|
||||
virQEMUDriverPtr driver = dom->conn->privateData;
|
||||
qemuDomainObjPrivatePtr priv;
|
||||
virDomainObjPtr vm;
|
||||
int ret = -1;
|
||||
|
||||
@ -11594,8 +11595,10 @@ qemuDomainMemoryStats(virDomainPtr dom,
|
||||
if (!virDomainObjIsActive(vm)) {
|
||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||
"%s", _("domain is not running"));
|
||||
} else {
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
priv = vm->privateData;
|
||||
qemuDomainObjEnterMonitor(driver, vm);
|
||||
ret = qemuMonitorGetMemoryStats(priv->mon, stats, nr_stats);
|
||||
if (qemuDomainObjExitMonitor(driver, vm) < 0)
|
||||
@ -11613,8 +11616,8 @@ qemuDomainMemoryStats(virDomainPtr dom,
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
endjob:
|
||||
qemuDomainObjEndJob(driver, vm);
|
||||
|
||||
cleanup:
|
||||
|
Loading…
x
Reference in New Issue
Block a user