Skip to content

Commit

Permalink
ftrace: remove unnecessary if condition of __unregister_ftrace_function
Browse files Browse the repository at this point in the history
Because it has goto out before ftrace_list == &ftrace_list_end,
that's to say, we never meet this condition.

Signed-off-by: walimis <walimisdev@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
walimis authored and Ingo Molnar committed Nov 13, 2008
1 parent 12ef7d4 commit b3535c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ static int __unregister_ftrace_function(struct ftrace_ops *ops)

if (ftrace_enabled) {
/* If we only have one func left, then call that directly */
if (ftrace_list == &ftrace_list_end ||
ftrace_list->next == &ftrace_list_end)
if (ftrace_list->next == &ftrace_list_end)
ftrace_trace_function = ftrace_list->func;
}

Expand Down

0 comments on commit b3535c6

Please sign in to comment.