Skip to content

Commit

Permalink
tracing: Remove a pointless assignment
Browse files Browse the repository at this point in the history
The variable 'len' has been assigned a value but is not used after that.
So, remove the assignement.

Link: https://lkml.kernel.org/r/[email protected]

Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and rostedt committed Oct 8, 2020
1 parent 40dc4a4 commit 43aa422
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 43aa422

Please sign in to comment.