提交 3967e93e 编写于 作者: R Robert Richter

oprofile: simplify add_sample() in cpu_buffer.c

Signed-off-by: NRobert Richter <robert.richter@amd.com>
上级 6352d92d
......@@ -203,11 +203,7 @@ add_sample(struct oprofile_cpu_buffer *cpu_buf,
entry.sample->eip = pc;
entry.sample->event = event;
ret = op_cpu_buffer_write_commit(&entry);
if (ret)
return ret;
return 0;
return op_cpu_buffer_write_commit(&entry);
}
static inline int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册