diff options
author | Gautam Menghani <gautammenghani201@gmail.com> | 2022-06-12 16:42:32 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-06-18 01:12:07 +0200 |
commit | 12c3e0c92fd7cb3d3b698d84fdde7dccb6ba8822 (patch) | |
tree | 56d9e3442c42202c66d20d879a8f51226c74b493 /kernel | |
parent | tracefs: Fix syntax errors in comments (diff) | |
download | linux-12c3e0c92fd7cb3d3b698d84fdde7dccb6ba8822.tar.xz linux-12c3e0c92fd7cb3d3b698d84fdde7dccb6ba8822.zip |
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/20220612144232.145209-1-gautammenghani201@gmail.com
Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_uprobe.c | 1 |
1 files changed, 0 insertions, 1 deletions
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]) { |