Add endjob label to qemuDomainMemoryStats

Reduce the indentation level.
This commit is contained in:
Ján Tomko 2015-06-03 16:55:25 +02:00
parent c09e1729df
commit 4bcdd9cc9e

View File

@ -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: