tracing: Remove unnecessary variable in print_graph_return
authorWenji Huang <wenji.huang@oracle.com>
Wed, 24 Feb 2010 07:40:24 +0000 (15:40 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 25 Feb 2010 15:41:24 +0000 (10:41 -0500)
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>
kernel/trace/trace_functions_graph.c

index 616b135c9eb9d128da6fbfbdef73c59be0ce0e49..112561df2a0a6681ae426485caeabd0fa03c8fa8 100644 (file)
@@ -855,7 +855,6 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s,
        int i;
 
        if (data) {
-               int cpu = iter->cpu;
                int *depth = &(per_cpu_ptr(data->cpu_data, cpu)->depth);
 
                /*