From: Colin Ian King Date: Mon, 16 Jan 2023 16:16:12 +0000 (+0000) Subject: rv: remove redundant initialization of pointer ptr X-Git-Tag: v6.6.17~5277^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae3edea88e6c1bbb8b41ef958f79a7a44ab45f7c;p=platform%2Fkernel%2Flinux-rpi.git 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 Cc: Masami Hiramatsu Signed-off-by: Colin Ian King Signed-off-by: Steven Rostedt (Google) --- diff --git a/kernel/trace/rv/rv.c b/kernel/trace/rv/rv.c index 6c97cc2..7e906182 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)