diff options
Diffstat (limited to 'tools/perf')
-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]) { |