Skip to content

Commit

Permalink
rv: remove redundant initialization of pointer ptr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Steven Rostedt (Google) committed Jan 25, 2023
1 parent 34226fc commit ae3edea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/rv/rv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae3edea

Please sign in to comment.