From: walimis Date: Thu, 13 Nov 2008 16:21:02 +0000 (+0800) Subject: ftrace: remove unnecessary if condition of __unregister_ftrace_function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3535c6390f27d04273e4eee0bc687f171fbf5f4;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ftrace: remove unnecessary if condition of __unregister_ftrace_function Because it has goto out before ftrace_list == &ftrace_list_end, that's to say, we never meet this condition. Signed-off-by: walimis Acked-by: Steven Rostedt Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index beb21a51e1ef..54cb9a7d15e5 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -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; }