* [PATCH] kernel/trace: Remove unwanted initialization in __trace_uprobe_create()
@ 2022-06-12 14:42 Gautam Menghani
0 siblings, 0 replies; only message in thread
From: Gautam Menghani @ 2022-06-12 14:42 UTC (permalink / raw)
To: rostedt, mingo, kafai, songliubraving, yhs
Cc: Gautam Menghani, linux-kernel, netdev, bpf
Remove the unwanted initialization of variable 'ret'. This fixes the clang
scan warning: Value stored to 'ret' is never read [deadcode.DeadStores]
Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>
---
kernel/trace/trace_uprobe.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index 9711589273cd..c3dc4f859a6b 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -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]) {
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-12 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-12 14:42 [PATCH] kernel/trace: Remove unwanted initialization in __trace_uprobe_create() Gautam Menghani
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.