From b4bc800cfc051a71443927afac3cbe3810701a0f Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 21 Apr 2016 09:54:45 +0200 Subject: [PATCH] virsh: perf: Remove unnecessary 'error' label The only place that uses it doesn't warrant a separate label. --- tools/virsh-domain.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 4a73a80c2e..a9f70dcdef 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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; }