Commit dd5f5fd1 authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

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: default avatarFrederic Weisbecker <>
Cc: Ingo Molnar <>
Cc: Peter Zijlstra <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Stephane Eranian <>
parent eac9eace
......@@ -1018,9 +1018,6 @@ int __perf_session__process_events(struct perf_session *session,
if (session->header.needs_swap)
size = event->header.size;
if (size == 0)
size = 8;
if (head + event->header.size > mmap_size) {
if (mmaps[map_idx]) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment