[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241021102428.287998-2-gianf.trad@gmail.com>
Date: Mon, 21 Oct 2024 12:24:29 +0200
From: Gianfranco Trad <gianf.trad@...il.com>
To: rostedt@...dmis.org,
mhiramat@...nel.org,
mark.rutland@....com,
mathieu.desnoyers@...icios.com
Cc: linux-kernel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org,
skhan@...uxfoundation.org,
Gianfranco Trad <gianf.trad@...il.com>
Subject: [PATCH] fgraph: fix unused value in register_ftrace_graph()
Coverity reports unused assignment to value ret. [1]
ret is assigned to 0 here, but that stored value is overwritten before
it can be used. The overwrite might happen either at line 1277, 1290
or eventually at line 1306. Therefore, cleanup the unused assignment.
[1] Coverity Scan, CID 1633338
Signed-off-by: Gianfranco Trad <gianf.trad@...il.com>
---
kernel/trace/fgraph.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c
index 41e7a15dcb50..cc2e065c1c8d 100644
--- a/kernel/trace/fgraph.c
+++ b/kernel/trace/fgraph.c
@@ -1262,7 +1262,6 @@ int register_ftrace_graph(struct fgraph_ops *gops)
return ret;
}
fgraph_initialized = true;
- ret = 0;
}
if (!fgraph_array[0]) {
--
2.43.0
Powered by blists - more mailing lists