diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-12-23 17:12:22 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-12-23 19:27:23 (GMT) |
commit | 97e9b4fca52bf4e2f7eed9463a0722f8e7afbe90 (patch) | |
tree | 0381d13d5aa31671a0614fefd400f32e719d2a48 /kernel | |
parent | b6b71f66a16a9212b853c168f6ec1f303c5c7a7d (diff) | |
download | linux-97e9b4fca52bf4e2f7eed9463a0722f8e7afbe90.tar.xz |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ftrace.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 29fcc2c..0f7ee34 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -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, |