Skip to content

Commit

Permalink
oprofile: simplify add_sample() in cpu_buffer.c
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Richter <robert.richter@amd.com>
  • Loading branch information
Robert Richter committed Dec 30, 2008
1 parent 6352d92 commit 3967e93
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/oprofile/cpu_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3967e93

Please sign in to comment.