diff options
| -rw-r--r-- | drivers/oprofile/buffer_sync.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c index 22cdb510836..7415d2e6b3a 100644 --- a/drivers/oprofile/buffer_sync.c +++ b/drivers/oprofile/buffer_sync.c | |||
| @@ -333,7 +333,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm) | |||
| 333 | 333 | ||
| 334 | sample = op_cpu_buffer_read_entry(cpu); | 334 | sample = op_cpu_buffer_read_entry(cpu); |
| 335 | if (!sample) | 335 | if (!sample) |
| 336 | goto Error; | 336 | return; |
| 337 | rip = sample->eip; | 337 | rip = sample->eip; |
| 338 | 338 | ||
| 339 | #ifdef __LP64__ | 339 | #ifdef __LP64__ |
| @@ -372,15 +372,12 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm) | |||
| 372 | for (i = 0; i < count; i++) { | 372 | for (i = 0; i < count; i++) { |
| 373 | sample = op_cpu_buffer_read_entry(cpu); | 373 | sample = op_cpu_buffer_read_entry(cpu); |
| 374 | if (!sample) | 374 | if (!sample) |
| 375 | goto Error; | 375 | return; |
| 376 | add_event_entry(sample->eip); | 376 | add_event_entry(sample->eip); |
| 377 | add_event_entry(sample->event); | 377 | add_event_entry(sample->event); |
| 378 | } | 378 | } |
| 379 | 379 | ||
| 380 | return; | 380 | return; |
| 381 | |||
| 382 | Error: | ||
| 383 | return; | ||
| 384 | } | 381 | } |
| 385 | 382 | ||
| 386 | #endif | 383 | #endif |
