From: Robert Richter Date: Tue, 30 Dec 2008 04:10:58 +0000 (+0100) Subject: oprofile: simplify add_sample() in cpu_buffer.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3967e93e063d7ee608f465cbccb65abb518e9d33;p=linux-beck.git oprofile: simplify add_sample() in cpu_buffer.c Signed-off-by: Robert Richter --- diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index 435bd6e08d5b..d92f0020502e 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c @@ -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