[PATCH] tracing: Remove redundant assignment to variable ret
From: Yuntao Wang
Date: Sun Jan 16 2022 - 09:48:41 EST
The value assigned to variable ret is never read, the assignment is
redundant and can be removed.
Signed-off-by: Yuntao Wang <ytcoode@xxxxxxxxx>
---
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