summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-07-21 13:09:15 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-07-23 08:46:02 -0400
commit3b1a8f457fcf105924c72e99f1191834837c978d (patch)
tree832745c25ae7f19ab2c34950550f9cb5a5fdc18c /kernel
parent68e83498cb4fad31963b5c76a71e80b824bc316e (diff)
downloadlinux-3b1a8f457fcf105924c72e99f1191834837c978d.tar.bz2
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 'kernel')
-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);