Commit dd5f5fd1083601d9145168ce43a268a068add81a

Authored by Frederic Weisbecker
1 parent eac9eacee1

perf tools: Remove junk code in mmap size handling

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>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

tools/perf/util/session.c
... ... @@ -1018,9 +1018,6 @@
1018 1018  
1019 1019 if (session->header.needs_swap)
1020 1020 perf_event_header__bswap(&event->header);
1021   - size = event->header.size;
1022   - if (size == 0)
1023   - size = 8;
1024 1021  
1025 1022 if (head + event->header.size > mmap_size) {
1026 1023 if (mmaps[map_idx]) {