Skip to content

Commit 12c3e0c

Browse files
Gautam-Menghanirostedt
authored andcommitted
tracing/uprobes: 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] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Gautam Menghani <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 93a8c04 commit 12c3e0c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/trace/trace_uprobe.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ static int __trace_uprobe_create(int argc, const char **argv)
546546
bool is_return = false;
547547
int i, ret;
548548

549-
ret = 0;
550549
ref_ctr_offset = 0;
551550

552551
switch (argv[0][0]) {

0 commit comments

Comments
 (0)