Commit c85f3a91f84d5a85f179c2504bb7a39370c82b41

Authored by Wenji Huang
Committed by Steven Rostedt
1 parent a5efd92511

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

kernel/trace/trace_functions_graph.c
... ... @@ -855,7 +855,6 @@
855 855 int i;
856 856  
857 857 if (data) {
858   - int cpu = iter->cpu;
859 858 int *depth = &(per_cpu_ptr(data->cpu_data, cpu)->depth);
860 859  
861 860 /*