Skip to content

Commit

Permalink
perf tools: Remove junk code in mmap size handling
Browse files Browse the repository at this point in the history
size is overriden later and used only then. Those
lines are only junk, probably a leftover.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
  • Loading branch information
fweisbec committed May 22, 2011
1 parent eac9eac commit dd5f5fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,9 +1018,6 @@ int __perf_session__process_events(struct perf_session *session,

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]) {
Expand Down

0 comments on commit dd5f5fd

Please sign in to comment.