[for-next][PATCH 12/26] tracing: remove a pointless assignment

Steven Rostedt
2020-09-22T01:26:18Z

From: Dan Carpenter <dan.carpenter@oracle.com>

The "tr" is a stack variable so setting it to NULL before a return is
a no-op. Delete the assignment.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
kernel/trace/trace.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 1c4ca25944ba..55b829863127 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -8799,7 +8799,6 @@ static int __remove_instance(struct trace_array *tr)
free_cpumask_var(tr->tracing_cpumask);
kfree(tr->name);
kfree(tr);
- tr = NULL;

return 0;
}
--
2.28.0