diff options
author | 2011-12-29 21:26:17 +0100 | |
---|---|---|
committer | 2011-12-29 21:26:17 +0100 | |
commit | f2328062726d36e562f1458d6346b77aa048acad (patch) | |
tree | a4b85b2a3530737a35fc4d2ed7555a2c24357333 /tools | |
parent | perf script: Add generic perl handler to process events (diff) | |
download | linux-f2328062726d36e562f1458d6346b77aa048acad.tar.gz linux-f2328062726d36e562f1458d6346b77aa048acad.tar.bz2 linux-f2328062726d36e562f1458d6346b77aa048acad.zip |
perf tools: Fix feature-bits rework fallout, remove unused variable
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Robert Richter <robert.richter@amd.com>
Link: http://lkml.kernel.org/n/tip-lfckuwbl8m1ykb7t9ydsxe4r@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/header.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index e509a9dea00b..3e7e0b09c12c 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1415,15 +1415,12 @@ static int perf_header__adds_write(struct perf_header *header, struct perf_evlist *evlist, int fd) { int nr_sections; - struct perf_session *session; struct perf_file_section *feat_sec, *p; int sec_size; u64 sec_start; int feat; int err; - session = container_of(header, struct perf_session, header); - nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS); if (!nr_sections) return 0; |