summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-12-30 05:10:58 +0100
committerRobert Richter <robert.richter@amd.com>2008-12-30 05:30:05 +0100
commit3967e93e063d7ee608f465cbccb65abb518e9d33 (patch)
tree470488852d80491007c29c6724566d1e1d9edc54 /drivers/oprofile
parent6352d92dec0c4b833c12a169e86762c05d0396f3 (diff)
downloadop-kernel-dev-3967e93e063d7ee608f465cbccb65abb518e9d33.zip
op-kernel-dev-3967e93e063d7ee608f465cbccb65abb518e9d33.tar.gz
oprofile: simplify add_sample() in cpu_buffer.c
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile')
-rw-r--r--drivers/oprofile/cpu_buffer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c
index 435bd6e..d92f002 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
OpenPOWER on IntegriCloud