Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3967e93e authored by Robert Richter's avatar Robert Richter
Browse files

oprofile: simplify add_sample() in cpu_buffer.c

parent 6352d92d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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