The only place that uses it doesn't warrant a separate label.
}
}
} 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;
virTypedParamsFree(params, nparams);
virDomainFree(dom);
return ret;
-
- error:
- vshError(ctl, "%s", _("Unable to enable/disable perf events"));
- goto cleanup;
}