Skip to content

Commit 474ec3e

Browse files
oleg-nesterovrostedt
authored andcommitted
function_graph: Remove unnecessary initialization in ftrace_graph_ret_addr()
After the commit 29c1c24 ("function_graph: Fix up ftrace_graph_ret_addr()") ftrace_graph_ret_addr() doesn't need to initialize "int i" at the start. Cc: Masami Hiramatsu <[email protected]> Cc: Puranjay Mohan <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 21e9280 commit 474ec3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/fgraph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ unsigned long ftrace_graph_ret_addr(struct task_struct *task, int *idx,
930930
{
931931
struct ftrace_ret_stack *ret_stack;
932932
unsigned long return_handler = (unsigned long)dereference_kernel_function_descriptor(return_to_handler);
933-
int i = task->curr_ret_stack;
933+
int i;
934934

935935
if (ret != return_handler)
936936
return ret;

0 commit comments

Comments
 (0)