Skip to contentSkip to conversation

fgraph: Remove unused value

PATCH New Amit Vadhavana 1 participant 1 message Oct 21, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fgraph: Remove unused value

The variable ret is assigned a value which is unused. Fix this by removing the redundant ret = 0; assignment.

This issue was reported by Coverity Scan.
Report:
CID 1600916: (#1 of 1): Unused value (UNUSED_VALUE)
assigned_value: Assigning value 0 to ret here,
but that stored value is overwritten before it can be used.

---
 kernel/trace/fgraph.c | 1 -
 1 file changed, 1 deletion(-)
kernel/trace/fgraph.c +0 -1
index 06d254edaed7..306f1cb7bba3 100644
@@ -1302,7 +1302,6 @@ int register_ftrace_graph(struct fgraph_ops *gops)
 			return ret;
 		}
 		fgraph_initialized = true;
-		ret = 0;
 	}
 
 	if (!fgraph_array[0]) {
Signature · 1 line
2.25.1