提交 ae3edea8 编写于 作者: C Colin Ian King 提交者: Steven Rostedt (Google)

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: NColin Ian King <colin.i.king@gmail.com>
Signed-off-by: NSteven Rostedt (Google) <rostedt@goodmis.org>
上级 34226fc6
...@@ -516,7 +516,7 @@ static ssize_t enabled_monitors_write(struct file *filp, const char __user *user ...@@ -516,7 +516,7 @@ static ssize_t enabled_monitors_write(struct file *filp, const char __user *user
struct rv_monitor_def *mdef; struct rv_monitor_def *mdef;
int retval = -EINVAL; int retval = -EINVAL;
bool enable = true; bool enable = true;
char *ptr = buff; char *ptr;
int len; int len;
if (count < 1 || count > MAX_RV_MONITOR_NAME_SIZE + 1) if (count < 1 || count > MAX_RV_MONITOR_NAME_SIZE + 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册