mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: perf: Remove unnecessary 'error' label
The only place that uses it doesn't warrant a separate label.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user