diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2020-09-30 19:43:03 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-10-08 15:29:06 -0400 |
commit | 43aa422c0c07135236bd91cbb45b048fd85e73b5 (patch) | |
tree | 981f185b7104203df5ff8c3c7938f07a01596c9a | |
parent | 40dc4a42b97ef5a52ef34a73093a7992faaab15e (diff) | |
download | linux-43aa422c0c07135236bd91cbb45b048fd85e73b5.tar.gz linux-43aa422c0c07135236bd91cbb45b048fd85e73b5.tar.bz2 linux-43aa422c0c07135236bd91cbb45b048fd85e73b5.zip |
tracing: Remove a pointless assignment
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>
-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 73fd0e0c0f39..0806fa9f2815 100644 --- 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 */ |