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)) if (!virPerfEventIsEnabled(priv->perf, i))
continue; continue;
switch (i) { if (qemuDomainGetStatsPerfOneEvent(priv->perf, i,
case VIR_PERF_EVENT_CMT: record, maxparams) < 0)
case VIR_PERF_EVENT_MBMT:
case VIR_PERF_EVENT_MBML:
if (qemuDomainGetStatsPerfOneEvent(priv->perf, i, record,
maxparams) < 0)
goto cleanup; goto cleanup;
break;
}
} }
ret = 0; ret = 0;