Skip to content

Commit 3b1a8f4

Browse files
Colin Ian Kingrostedt
authored andcommitted
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>
1 parent 68e8349 commit 3b1a8f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/ftrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7545,7 +7545,7 @@ int ftrace_is_dead(void)
75457545
*/
75467546
int register_ftrace_function(struct ftrace_ops *ops)
75477547
{
7548-
int ret = -1;
7548+
int ret;
75497549

75507550
ftrace_ops_init(ops);
75517551

0 commit comments

Comments
 (0)