Skip to contentSkip to conversation

kernel/trace: Remove unwanted initialization in __trace_uprobe_create()

PATCH New Gautam Menghani 1 participant 1 message Jun 12, 2022

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

PATCH 1/1 kernel/trace: Remove unwanted initialization in __trace_uprobe_create()

Remove the unwanted initialization of variable 'ret'. This fixes the clang scan warning: Value stored to 'ret' is never read [deadcode.DeadStores]

---
 kernel/trace/trace_uprobe.c | 1 -
 1 file changed, 1 deletion(-)
kernel/trace/trace_uprobe.c +0 -1
index 9711589273cd..c3dc4f859a6b 100644
@@ -546,7 +546,6 @@ static int __trace_uprobe_create(int argc, const char **argv)
 	bool is_return = false;
 	int i, ret;
 
-	ret = 0;
 	ref_ctr_offset = 0;
 
 	switch (argv[0][0]) {
Signature · 1 line
2.25.1