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

util: perf: Adhere to coding style of error checks in virPerfEventEnable

上级 f7e7994b
......@@ -186,7 +186,7 @@ virPerfEventEnable(virPerfPtr perf,
switch (type) {
case VIR_PERF_EVENT_CMT:
if (virPerfCmtEnable(event, pid))
if (virPerfCmtEnable(event, pid) < 0)
return -1;
break;
case VIR_PERF_EVENT_LAST:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册