From: Robert Richter Date: Tue, 30 Dec 2008 04:10:58 +0000 (+0100) Subject: oprofile: simplify add_sample() in cpu_buffer.c X-Git-Tag: v2.6.29-rc1~32^2~1^2~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3967e93e063d7ee608f465cbccb65abb518e9d33;p=linux-2.6-omap-h63xx.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 435bd6e08d5..d92f0020502 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