Skip to content

Commit

Permalink
oprofile: simplify add_ibs_begin()
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 Jan 7, 2009
1 parent 3967e93 commit dbe6e28
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/oprofile/buffer_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)

sample = op_cpu_buffer_read_entry(cpu);
if (!sample)
goto Error;
return;
rip = sample->eip;

#ifdef __LP64__
Expand Down Expand Up @@ -372,15 +372,12 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
for (i = 0; i < count; i++) {
sample = op_cpu_buffer_read_entry(cpu);
if (!sample)
goto Error;
return;
add_event_entry(sample->eip);
add_event_entry(sample->event);
}

return;

Error:
return;
}

#endif
Expand Down

0 comments on commit dbe6e28

Please sign in to comment.