提交 b4bc800c 编写于 作者: P Peter Krempa

virsh: perf: Remove unnecessary 'error' label

The only place that uses it doesn't warrant a separate label.
上级 f4f916a9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册