summaryrefslogtreecommitdiffstats
path: root/kernel/trace/rv
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-01-16 16:16:12 +0000
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-01-25 10:31:02 -0500
commitae3edea88e6c1bbb8b41ef958f79a7a44ab45f7c (patch)
treeb2b5af71b5ab6431515a288d2eeebbe3bf32059d /kernel/trace/rv
parent34226fc6889e0e2fe8480bf3a0b43ac992bbee94 (diff)
downloadlinux-stable-ae3edea88e6c1bbb8b41ef958f79a7a44ab45f7c.tar.gz
linux-stable-ae3edea88e6c1bbb8b41ef958f79a7a44ab45f7c.tar.bz2
linux-stable-ae3edea88e6c1bbb8b41ef958f79a7a44ab45f7c.zip
rv: remove redundant initialization of pointer ptr
The pointer ptr is being initialized with a value that is never read, it is being updated later on a call to strim. Remove the extraneous initialization. Link: https://lkml.kernel.org/r/20230116161612.77192-1-colin.i.king@gmail.com Cc: Daniel Bristot de Oliveira <bristot@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/rv')
-rw-r--r--kernel/trace/rv/rv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/rv/rv.c b/kernel/trace/rv/rv.c
index 6c97cc2d754a..7e9061828c24 100644
--- a/kernel/trace/rv/rv.c
+++ b/kernel/trace/rv/rv.c
@@ -516,7 +516,7 @@ static ssize_t enabled_monitors_write(struct file *filp, const char __user *user
struct rv_monitor_def *mdef;
int retval = -EINVAL;
bool enable = true;
- char *ptr = buff;
+ char *ptr;
int len;
if (count < 1 || count > MAX_RV_MONITOR_NAME_SIZE + 1)