aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/buffer_sync.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-12-16 05:01:18 -0500
committerRobert Richter <robert.richter@amd.com>2009-01-07 11:05:44 -0500
commitdbe6e2835e32461e7d592077947081c32f3da1d5 (patch)
tree5214ed8375f061ee34cfb97301b2026f5a1a227d /drivers/oprofile/buffer_sync.c
parent3967e93e063d7ee608f465cbccb65abb518e9d33 (diff)
oprofile: simplify add_ibs_begin()
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
-rw-r--r--drivers/oprofile/buffer_sync.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index 22cdb5108360..7415d2e6b3a1 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
382Error:
383 return;
384} 381}
385 382
386#endif 383#endif