mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
eac9eacee1
commit
dd5f5fd108
1 changed files with 0 additions and 3 deletions
|
@ -1018,9 +1018,6 @@ more:
|
||||||
|
|
||||||
if (session->header.needs_swap)
|
if (session->header.needs_swap)
|
||||||
perf_event_header__bswap(&event->header);
|
perf_event_header__bswap(&event->header);
|
||||||
size = event->header.size;
|
|
||||||
if (size == 0)
|
|
||||||
size = 8;
|
|
||||||
|
|
||||||
if (head + event->header.size > mmap_size) {
|
if (head + event->header.size > mmap_size) {
|
||||||
if (mmaps[map_idx]) {
|
if (mmaps[map_idx]) {
|
||||||
|
|
Loading…
Reference in a new issue