remove redundant initialization of pointer ptr
Subsystems (3)
PATCH 1/1 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.
Signed-off-by Colin Ian King <[email protected]>
--- kernel/trace/rv/rv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/rv/rv.c +1 -1
@@ -516,7 +516,7 @@ static ssize_t enabled_monitors_write(struct file *filp, const char __user *userstruct 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 )
Signature · 1 line
2.30.2