Skip to content

Commit ae3edea

Browse files
ColinIanKingrostedt
authored andcommitted
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/[email protected] Cc: Daniel Bristot de Oliveira <[email protected]> Cc: Masami Hiramatsu <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 34226fc commit ae3edea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/rv/rv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static ssize_t enabled_monitors_write(struct file *filp, const char __user *user
516516
struct rv_monitor_def *mdef;
517517
int retval = -EINVAL;
518518
bool enable = true;
519-
char *ptr = buff;
519+
char *ptr;
520520
int len;
521521

522522
if (count < 1 || count > MAX_RV_MONITOR_NAME_SIZE + 1)

0 commit comments

Comments
 (0)