Messages in this thread Patch in this message | | | From | Yuntao Wang <> | Subject | [PATCH] tracing: Remove redundant assignment to variable ret | Date | Sun, 16 Jan 2022 22:48:05 +0800 |
| |
The value assigned to variable ret is never read, the assignment is redundant and can be removed.
Signed-off-by: Yuntao Wang <ytcoode@gmail.com> --- kernel/trace/ftrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 403e485bf091..48499f58ce47 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -7122,9 +7122,9 @@ void __init ftrace_init(void) last_ftrace_enabled = ftrace_enabled = 1; - ret = ftrace_process_locs(NULL, - __start_mcount_loc, - __stop_mcount_loc); + ftrace_process_locs(NULL, + __start_mcount_loc, + __stop_mcount_loc); pr_info("ftrace: allocated %ld pages with %ld groups\n", ftrace_number_of_pages, ftrace_number_of_groups); -- 2.34.1
| |