aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2010-02-24 02:40:24 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-02-25 10:41:24 -0500
commitc85f3a91f84d5a85f179c2504bb7a39370c82b41 (patch)
tree04f082a3f73138f97a4022e624942f29420617a9 /kernel/trace
parenta5efd925115cbc1f90195dca9a25f7b8daa10c37 (diff)
tracing: Remove unnecessary variable in print_graph_return
The "cpu" variable is declared at the start of the function and also within a branch, with the exact same initialization. Remove the local variable of the same name in the branch. Signed-off-by: Wenji Huang <wenji.huang@oracle.com> LKML-Reference: <1266997226-6833-3-git-send-email-wenji.huang@oracle.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_functions_graph.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 616b135c9eb..112561df2a0 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -855,7 +855,6 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s,
855 int i; 855 int i;
856 856
857 if (data) { 857 if (data) {
858 int cpu = iter->cpu;
859 int *depth = &(per_cpu_ptr(data->cpu_data, cpu)->depth); 858 int *depth = &(per_cpu_ptr(data->cpu_data, cpu)->depth);
860 859
861 /* 860 /*