mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 02:21:15 +00:00
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: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
b6b71f66a1
commit
97e9b4fca5
1 changed files with 3 additions and 6 deletions
|
@ -4982,14 +4982,11 @@ void ftrace_release_mod(struct module *mod)
|
||||||
|
|
||||||
void ftrace_module_init(struct module *mod)
|
void ftrace_module_init(struct module *mod)
|
||||||
{
|
{
|
||||||
unsigned long *start = mod->ftrace_callsites;
|
if (ftrace_disabled || !mod->num_ftrace_callsites)
|
||||||
unsigned long *end = mod->ftrace_callsites +
|
|
||||||
mod->num_ftrace_callsites;
|
|
||||||
|
|
||||||
if (ftrace_disabled || start == end)
|
|
||||||
return;
|
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,
|
static int ftrace_module_notify_exit(struct notifier_block *self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue