diff options
author | walimis <walimisdev@gmail.com> | 2008-11-14 00:21:02 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-13 19:36:30 +0100 |
commit | b3535c6390f27d04273e4eee0bc687f171fbf5f4 (patch) | |
tree | a0160e2b70acc1743d6d3c68d149df9673d78fde /kernel/trace | |
parent | 12ef7d448613ead2babd41c3ebfa1fe03c20edef (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>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ftrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index beb21a51e1e..54cb9a7d15e 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; } |