[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220116144805.102999-1-ytcoode@gmail.com>
Date: Sun, 16 Jan 2022 22:48:05 +0800
From: Yuntao Wang <ytcoode@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...hat.com>
Cc: linux-kernel@...r.kernel.org, Yuntao Wang <ytcoode@...il.com>
Subject: [PATCH] tracing: Remove redundant assignment to variable ret
The value assigned to variable ret is never read, the assignment is
redundant and can be removed.
Signed-off-by: Yuntao Wang <ytcoode@...il.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
Powered by blists - more mailing lists