aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-11-30 12:49:35 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-11-30 16:55:26 -0500
commit28990f75e66b36faf6ce56747890009d4e250243 (patch)
tree3f2934ddefb093f0adddbf3b8c77205c42cf1f61
parenta1225decc43849a73f7e4c333c3fdbbb8a9c1e65 (diff)
perf session: Use appropriate pointer type instead of silly typecasting
There is no reason to use a struct sample_event pointer in struct sample_queue and type cast it when flushing the queue. Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20101130163819.969462809@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index daca557b9d28..525bcf6adc21 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -386,7 +386,7 @@ static event__swap_op event__swap_ops[] = {
386 386
387struct sample_queue { 387struct sample_queue {
388 u64 timestamp; 388 u64 timestamp;
389 struct sample_event *event; 389 event_t *event;
390 struct list_head list; 390 struct list_head list;
391}; 391};
392 392
@@ -406,7 +406,7 @@ static void flush_sample_queue(struct perf_session *s,
406 if (iter->timestamp > limit) 406 if (iter->timestamp > limit)
407 break; 407 break;
408 408
409 ops->sample((event_t *)iter->event, s); 409 ops->sample(iter->event, s);
410 410
411 os->last_flush = iter->timestamp; 411 os->last_flush = iter->timestamp;
412 list_del(&iter->list); 412 list_del(&iter->list);