mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
util: perf: Adhere to coding style of error checks in qemuDomainSetPerfEvents
This commit is contained in:
parent
bb9a80f9fc
commit
e64e394223
@ -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 ?
|
||||
|
Loading…
Reference in New Issue
Block a user