提交 97e9b4fc 编写于 作者: S Steven Rostedt (Red Hat) 提交者: Steven Rostedt

ftrace: Clean up ftrace_module_init() code

The start and end variables were only used when ftrace_module_init() was
split up into multiple functions. No need to keep them around after the
merger.
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 b6b71f66
......@@ -4982,14 +4982,11 @@ void ftrace_release_mod(struct module *mod)
void ftrace_module_init(struct module *mod)
{
unsigned long *start = mod->ftrace_callsites;
unsigned long *end = mod->ftrace_callsites +
mod->num_ftrace_callsites;
if (ftrace_disabled || start == end)
if (ftrace_disabled || !mod->num_ftrace_callsites)
return;
ftrace_process_locs(mod, start, end);
ftrace_process_locs(mod, mod->ftrace_callsites,
mod->ftrace_callsites + mod->num_ftrace_callsites);
}
static int ftrace_module_notify_exit(struct notifier_block *self,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册