perf tools: Remove junk code in mmap size handling
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 21 May 2011 15:07:24 +0000 (17:07 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 22 May 2011 01:12:28 +0000 (03:12 +0200)
size is overriden later and used only then. Those
lines are only junk, probably a leftover.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
tools/perf/util/session.c

index 61746b5866d81d6b494be4dbca2916af1fc38b31..db652068c3963b3fcaa6926712760a1d622bb86a 100644 (file)
@@ -1018,9 +1018,6 @@ more:
 
        if (session->header.needs_swap)
                perf_event_header__bswap(&event->header);
-       size = event->header.size;
-       if (size == 0)
-               size = 8;
 
        if (head + event->header.size > mmap_size) {
                if (mmaps[map_idx]) {