Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3535c63 authored by walimis's avatar walimis Committed by Ingo Molnar
Browse files

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: default avatarwalimis <walimisdev@gmail.com>
Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 12ef7d44
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
	}