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>
This commit is contained in:
Colin Ian King 2021-07-21 13:09:15 +01:00 коммит произвёл Steven Rostedt (VMware)
Родитель 68e83498cb
Коммит 3b1a8f457f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);