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:
40dc4a4
)
tracing: Remove a pointless assignment
author
Sudip Mukherjee
<sudipm.mukherjee@gmail.com>
Wed, 30 Sep 2020 18:43:03 +0000
(19:43 +0100)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Thu, 8 Oct 2020 19:29:06 +0000
(15:29 -0400)
The variable 'len' has been assigned a value but is not used after that.
So, remove the assignement.
Link:
https://lkml.kernel.org/r/20200930184303.22896-1-sudipm.mukherjee@gmail.com
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.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
73fd0e0
..
0806fa9
100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-6667,7
+6667,6
@@
tracing_mark_write(struct file *filp, const char __user *ubuf,
written = -EFAULT;
} else
written = cnt;
- len = cnt;
if (tr->trace_marker_file && !list_empty(&tr->trace_marker_file->triggers)) {
/* do not add \n before testing triggers, but add \0 */