diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2023-04-18 18:00:18 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-04-26 02:24:28 +0300 |
commit | 73e053cbd00ed890abfc812d6c602cbfa8d234dc (patch) | |
tree | 435fcad6216cda39d157370867aaaa01b8c243c3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 54a0dffa62de0c91b406ff32082a121ccfa0d7f1 (diff) | |
download | linux-73e053cbd00ed890abfc812d6c602cbfa8d234dc.tar.xz |
rv: Remove redundant assignment to variable retval
Variable retval is being assigned a value that is never read, it is
being re-assigned a new value in both paths of a following if statement.
Remove the assignment.
Cleans up clang-scan warning:
kernel/trace/rv/rv.c:293:2: warning: Value stored to 'retval' is never read [deadcode.DeadStores]
retval = count;
Link: https://lkml.kernel.org/r/20230418150018.3123753-1-colin.i.king@gmail.com
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions