virsh: perf: Remove unnecessary 'error' label

The only place that uses it doesn't warrant a separate label.
This commit is contained in:
Peter Krempa 2016-04-21 09:54:45 +02:00
parent f4f916a9e3
commit b4bc800cfc

View File

@ -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;
}