mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
virsh: perf: Remove unnecessary 'error' label
The only place that uses it doesn't warrant a separate label.
This commit is contained in:
parent
f4f916a9e3
commit
b4bc800cfc
@ -8652,8 +8652,10 @@ cmdPerf(vshControl *ctl, const vshCmd *cmd)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (virDomainSetPerfEvents(dom, params, nparams, flags) != 0)
|
||||
goto error;
|
||||
if (virDomainSetPerfEvents(dom, params, nparams, flags) != 0) {
|
||||
vshError(ctl, "%s", _("Unable to enable/disable perf events"));
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
ret = true;
|
||||
@ -8661,10 +8663,6 @@ cmdPerf(vshControl *ctl, const vshCmd *cmd)
|
||||
virTypedParamsFree(params, nparams);
|
||||
virDomainFree(dom);
|
||||
return ret;
|
||||
|
||||
error:
|
||||
vshError(ctl, "%s", _("Unable to enable/disable perf events"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user