projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3967e93
)
oprofile: simplify add_ibs_begin()
author
Robert Richter
<robert.richter@amd.com>
Tue, 16 Dec 2008 10:01:18 +0000
(11:01 +0100)
committer
Robert Richter
<robert.richter@amd.com>
Wed, 7 Jan 2009 16:05:44 +0000
(17:05 +0100)
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/buffer_sync.c
patch
|
blob
|
history
diff --git
a/drivers/oprofile/buffer_sync.c
b/drivers/oprofile/buffer_sync.c
index 22cdb5108360784ce6ef043ed097e9331ff92b32..7415d2e6b3a15953b4f446f9467b5b8599452b97 100644
(file)
--- 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