summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-12-16 11:01:18 +0100
committerRobert Richter <robert.richter@amd.com>2009-01-07 17:05:44 +0100
commitdbe6e2835e32461e7d592077947081c32f3da1d5 (patch)
tree5214ed8375f061ee34cfb97301b2026f5a1a227d /drivers/oprofile
parent3967e93e063d7ee608f465cbccb65abb518e9d33 (diff)
downloadlinux-dbe6e2835e32461e7d592077947081c32f3da1d5.tar.gz
linux-dbe6e2835e32461e7d592077947081c32f3da1d5.tar.bz2
linux-dbe6e2835e32461e7d592077947081c32f3da1d5.zip
oprofile: simplify add_ibs_begin()
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile')
-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)
sample = op_cpu_buffer_read_entry(cpu);
if (!sample)
- goto Error;
+ return;
rip = sample->eip;
#ifdef __LP64__
@@ -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