1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

perf: Remove the switch from qemuDomainGetStatsPerf

Remove the unnecessary switch since all VIR_PERF_EVENT* values are fetched
This commit is contained in:
Qiaowei Ren 2016-07-30 09:57:31 -04:00 committed by John Ferlan
parent f52b24d837
commit 062f413928

View File

@ -19295,15 +19295,9 @@ qemuDomainGetStatsPerf(virQEMUDriverPtr driver ATTRIBUTE_UNUSED,
if (!virPerfEventIsEnabled(priv->perf, i))
continue;
switch (i) {
case VIR_PERF_EVENT_CMT:
case VIR_PERF_EVENT_MBMT:
case VIR_PERF_EVENT_MBML:
if (qemuDomainGetStatsPerfOneEvent(priv->perf, i, record,
maxparams) < 0)
goto cleanup;
break;
}
if (qemuDomainGetStatsPerfOneEvent(priv->perf, i,
record, maxparams) < 0)
goto cleanup;
}
ret = 0;