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
Unified · Split
| @@ -6667,7 +6667,6 @@ tracing_mark_write(struct file *filp, const char __user *ubuf, · 6666 unmodified lines | ||
| 6667 | 6667 | written = -EFAULT; |
| 6668 | 6668 | } else |
| 6669 | 6669 | written = cnt; |
| 6670 | − len = cnt; | |
| 6671 | 6670 | |
| 6672 | 6671 | if (tr->trace_marker_file && !list_empty(&tr->trace_marker_file->triggers)) { |
| 6673 | 6672 | /* do not add \n before testing triggers, but add \0 */ |