diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2011-05-21 11:07:24 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2011-05-21 21:12:28 -0400 |
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 61746b5866d8..db652068c396 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1018,9 +1018,6 @@ more: | |||
1018 | 1018 | ||
1019 | if (session->header.needs_swap) | 1019 | if (session->header.needs_swap) |
1020 | perf_event_header__bswap(&event->header); | 1020 | perf_event_header__bswap(&event->header); |
1021 | size = event->header.size; | ||
1022 | if (size == 0) | ||
1023 | size = 8; | ||
1024 | 1021 | ||
1025 | if (head + event->header.size > mmap_size) { | 1022 | if (head + event->header.size > mmap_size) { |
1026 | if (mmaps[map_idx]) { | 1023 | if (mmaps[map_idx]) { |