util: perf: Adhere to coding style of error checks in qemuDomainSetPerfEvents

This commit is contained in:
Peter Krempa 2016-04-27 14:57:28 +02:00
parent bb9a80f9fc
commit e64e394223

View File

@ -10086,9 +10086,9 @@ qemuDomainSetPerfEvents(virDomainPtr dom,
enabled = params->value.b;
type = virPerfEventTypeFromString(param->field);
if (!enabled && virPerfEventDisable(priv->perf, type))
if (!enabled && virPerfEventDisable(priv->perf, type) < 0)
goto endjob;
if (enabled && virPerfEventEnable(priv->perf, type, vm->pid))
if (enabled && virPerfEventEnable(priv->perf, type, vm->pid) < 0)
goto endjob;
def->perf->events[type] = enabled ?