projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d3642
)
tracing: remove a pointless assignment
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 5 Sep 2020 12:50:20 +0000
(15:50 +0300)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Tue, 22 Sep 2020 01:06:02 +0000
(21:06 -0400)
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
patch
|
blob
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index 1c4ca25944ba5a1914541570b5015a0dcae802cd..55b8298631274db935bef0618072e45bc75e7a60 100644
(file)
--- 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;
}