oprofile: simplify add_sample() in cpu_buffer.c
Signed-off-by: Robert Richter <robert.richter@amd.com>hifive-unleashed-5.1
parent
6352d92dec
commit
3967e93e06
|
@ -203,11 +203,7 @@ add_sample(struct oprofile_cpu_buffer *cpu_buf,
|
||||||
entry.sample->eip = pc;
|
entry.sample->eip = pc;
|
||||||
entry.sample->event = event;
|
entry.sample->event = event;
|
||||||
|
|
||||||
ret = op_cpu_buffer_write_commit(&entry);
|
return op_cpu_buffer_write_commit(&entry);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
|
Loading…
Reference in New Issue