diff options
author | YangHui <yanghui.def@gmail.com> | 2020-06-16 11:36:46 +0800 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-06-16 21:21:03 -0400 |
commit | 69243720c0932b8672e571a873c78bcf3326575a (patch) | |
tree | 6796eb8a252c4d30321a58420b9172939546c456 /kernel | |
parent | 3aa8fdc37d16735e8891035becf25b3857d3efe0 (diff) | |
download | linux-69243720c0932b8672e571a873c78bcf3326575a.tar.gz linux-69243720c0932b8672e571a873c78bcf3326575a.tar.bz2 linux-69243720c0932b8672e571a873c78bcf3326575a.zip |
tracing: Remove unused event variable in tracing_iter_reset
We do not use the event variable, just remove it.
Signed-off-by: YangHui <yanghui.def@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ec44b0e2a19c..bb62269724d5 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -3570,7 +3570,6 @@ static void *s_next(struct seq_file *m, void *v, loff_t *pos) void tracing_iter_reset(struct trace_iterator *iter, int cpu) { - struct ring_buffer_event *event; struct ring_buffer_iter *buf_iter; unsigned long entries = 0; u64 ts; @@ -3588,7 +3587,7 @@ void tracing_iter_reset(struct trace_iterator *iter, int cpu) * that a reset never took place on a cpu. This is evident * by the timestamp being before the start of the buffer. */ - while ((event = ring_buffer_iter_peek(buf_iter, &ts))) { + while (ring_buffer_iter_peek(buf_iter, &ts)) { if (ts >= iter->array_buffer->time_start) break; entries++; |