aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwalimis <walimisdev@gmail.com>2008-11-13 11:21:02 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-13 13:36:30 -0500
commitb3535c6390f27d04273e4eee0bc687f171fbf5f4 (patch)
treea0160e2b70acc1743d6d3c68d149df9673d78fde
parent12ef7d448613ead2babd41c3ebfa1fe03c20edef (diff)
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 <walimisdev@gmail.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/trace/ftrace.c3
1 files changed, 1 insertions, 2 deletions
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)
179 179
180 if (ftrace_enabled) { 180 if (ftrace_enabled) {
181 /* If we only have one func left, then call that directly */ 181 /* If we only have one func left, then call that directly */
182 if (ftrace_list == &ftrace_list_end || 182 if (ftrace_list->next == &ftrace_list_end)
183 ftrace_list->next == &ftrace_list_end)
184 ftrace_trace_function = ftrace_list->func; 183 ftrace_trace_function = ftrace_list->func;
185 } 184 }
186 185