diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2011-05-21 17:07:24 +0200 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2011-05-22 03:12:28 +0200 |
commit | dd5f5fd1083601d9145168ce43a268a068add81a (patch) | |
tree | 06b34813b61d59b8c9fe153784b5929e5a269776 /tools | |
parent | eac9eacee1602710dda47c517ad0b61ac6f429bf (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/session.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 61746b5866d..db652068c39 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -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]) { |