* [PATCH] tracing: Remove unused event variable in tracing_iter_reset
@ 2020-05-07 7:47 Muchun Song
0 siblings, 0 replies; only message in thread
From: Muchun Song @ 2020-05-07 7:47 UTC (permalink / raw)
To: rostedt, mingo; +Cc: linux-kernel, Muchun Song
We do not use the event variable, just remove it.
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
---
kernel/trace/trace.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 8d2b988126250..6be74d2a7056f 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3566,7 +3566,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;
@@ -3584,7 +3583,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++;
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-07 7:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 7:47 [PATCH] tracing: Remove unused event variable in tracing_iter_reset Muchun Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).