summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-04-18 16:00:18 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-04-25 19:24:28 -0400
commit73e053cbd00ed890abfc812d6c602cbfa8d234dc (patch)
tree435fcad6216cda39d157370867aaaa01b8c243c3 /kernel/trace
parent54a0dffa62de0c91b406ff32082a121ccfa0d7f1 (diff)
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 'kernel/trace')
-rw-r--r--kernel/trace/rv/rv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/trace/rv/rv.c b/kernel/trace/rv/rv.c
index 7e9061828c24..2f68e93fff0b 100644
--- a/kernel/trace/rv/rv.c
+++ b/kernel/trace/rv/rv.c
@@ -290,8 +290,6 @@ static ssize_t monitor_enable_write_data(struct file *filp, const char __user *u
if (retval)
return retval;
- retval = count;
-
mutex_lock(&rv_interface_lock);
if (val)