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:
0a487aa
)
perf/x86/intel/pt: Remove redundant variable declaration
author
Alexander Shishkin
<
[email protected]
>
Fri, 22 May 2015 15:30:26 +0000
(18:30 +0300)
committer
Ingo Molnar
<
[email protected]
>
Wed, 27 May 2015 07:17:48 +0000
(09:17 +0200)
There is a 'pt' variable in the outer scope of pt_event_stop() with the same
type, we don't really need another one in the inner scope.
This patch removes the redundant variable declaration.
Signed-off-by: Alexander Shishkin <
[email protected]
>
Signed-off-by: Peter Zijlstra (Intel) <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/1432308626-18845-8-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/cpu/perf_event_intel_pt.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_intel_pt.c
b/arch/x86/kernel/cpu/perf_event_intel_pt.c
index a2d407172d61a0f0b2aa75263ce835f7dc8c0e84..59596d25cb2950d0e4eeab8348d7c79b0471e41f 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_intel_pt.c
+++ b/
arch/x86/kernel/cpu/perf_event_intel_pt.c
@@
-955,7
+955,6
@@
static void pt_event_stop(struct perf_event *event, int mode)
event->hw.state = PERF_HES_STOPPED;
if (mode & PERF_EF_UPDATE) {
- struct pt *pt = this_cpu_ptr(&pt_ctx);
struct pt_buffer *buf = perf_get_aux(&pt->handle);
if (!buf)