summaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-07-21 14:09:15 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-07-23 14:46:02 +0200
commit3b1a8f457fcf105924c72e99f1191834837c978d (patch)
tree832745c25ae7f19ab2c34950550f9cb5a5fdc18c /kernel/trace/ftrace.c
parentftrace: Avoid synchronize_rcu_tasks_rude() call when not necessary (diff)
downloadlinux-3b1a8f457fcf105924c72e99f1191834837c978d.tar.xz
linux-3b1a8f457fcf105924c72e99f1191834837c978d.zip
ftrace: Remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lkml.kernel.org/r/20210721120915.122278-1-colin.king@canonical.com Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to '')
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 4fbcf560dd03..7b180f61e6d3 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -7545,7 +7545,7 @@ int ftrace_is_dead(void)
*/
int register_ftrace_function(struct ftrace_ops *ops)
{
- int ret = -1;
+ int ret;
ftrace_ops_init(ops);