diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-09-05 15:50:20 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-09-21 21:06:02 -0400 |
commit | eb8d8b4c9848b200586aa98e105b39f159656ba6 (patch) | |
tree | b3ce2462fee8374f7b55f7c9582790c01c072597 /kernel/trace/trace.c | |
parent | f3d36426618ee2b2d1fa99aefb5fe4d2dc33807e (diff) |
tracing: remove a pointless assignment
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>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |