git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6352d92
)
oprofile: simplify add_sample() in cpu_buffer.c
author
Robert Richter
<robert.richter@amd.com>
Tue, 30 Dec 2008 04:10:58 +0000
(
05:10
+0100)
committer
Robert Richter
<robert.richter@amd.com>
Tue, 30 Dec 2008 04:30:05 +0000
(
05:30
+0100)
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/cpu_buffer.c
patch
|
blob
|
history
diff --git
a/drivers/oprofile/cpu_buffer.c
b/drivers/oprofile/cpu_buffer.c
index
435bd6e
..
d92f002
100644
(file)
--- 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