mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-07 01:13:49 +00: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 {
|
} else {
|
||||||
if (virDomainSetPerfEvents(dom, params, nparams, flags) != 0)
|
if (virDomainSetPerfEvents(dom, params, nparams, flags) != 0) {
|
||||||
goto error;
|
vshError(ctl, "%s", _("Unable to enable/disable perf events"));
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = true;
|
ret = true;
|
||||||
@ -8661,10 +8663,6 @@ cmdPerf(vshControl *ctl, const vshCmd *cmd)
|
|||||||
virTypedParamsFree(params, nparams);
|
virTypedParamsFree(params, nparams);
|
||||||
virDomainFree(dom);
|
virDomainFree(dom);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
error:
|
|
||||||
vshError(ctl, "%s", _("Unable to enable/disable perf events"));
|
|
||||||
goto cleanup;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user