]> Git Repo - J-linux.git/commitdiff
rv: remove redundant initialization of pointer ptr
authorColin Ian King <[email protected]>
Mon, 16 Jan 2023 16:16:12 +0000 (16:16 +0000)
committerSteven Rostedt (Google) <[email protected]>
Wed, 25 Jan 2023 15:31:02 +0000 (10:31 -0500)
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]>
kernel/trace/rv/rv.c

index 6c97cc2d754aaefe8d477f572bec03b97633b411..7e9061828c240ad4851ef46a5d9cbd95bd348924 100644 (file)
@@ -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)
This page took 0.052085 seconds and 4 git commands to generate.