mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
function_graph: Remove unnecessary initialization in ftrace_graph_ret_addr()
After the commit 29c1c24a27
("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 <mhiramat@kernel.org>
Cc: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/20240916175818.GA28944@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
parent
21e92806d3
commit
474ec3e849
@ -930,7 +930,7 @@ unsigned long ftrace_graph_ret_addr(struct task_struct *task, int *idx,
|
||||
{
|
||||
struct ftrace_ret_stack *ret_stack;
|
||||
unsigned long return_handler = (unsigned long)dereference_kernel_function_descriptor(return_to_handler);
|
||||
int i = task->curr_ret_stack;
|
||||
int i;
|
||||
|
||||
if (ret != return_handler)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user