aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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,
203 entry.sample->eip = pc; 203 entry.sample->eip = pc;
204 entry.sample->event = event; 204 entry.sample->event = event;
205 205
206 ret = op_cpu_buffer_write_commit(&entry); 206 return op_cpu_buffer_write_commit(&entry);
207 if (ret)
208 return ret;
209
210 return 0;
211} 207}
212 208
213static inline int 209static inline int