aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-12-29 15:26:17 -0500
committerIngo Molnar <mingo@elte.hu>2011-12-29 15:26:17 -0500
commitf2328062726d36e562f1458d6346b77aa048acad (patch)
treea4b85b2a3530737a35fc4d2ed7555a2c24357333 /tools/perf
parent37a058ea006de0cc24553637afa788594a975176 (diff)
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/perf')
-rw-r--r--tools/perf/util/header.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index e509a9dea00..3e7e0b09c12 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,
1415 struct perf_evlist *evlist, int fd) 1415 struct perf_evlist *evlist, int fd)
1416{ 1416{
1417 int nr_sections; 1417 int nr_sections;
1418 struct perf_session *session;
1419 struct perf_file_section *feat_sec, *p; 1418 struct perf_file_section *feat_sec, *p;
1420 int sec_size; 1419 int sec_size;
1421 u64 sec_start; 1420 u64 sec_start;
1422 int feat; 1421 int feat;
1423 int err; 1422 int err;
1424 1423
1425 session = container_of(header, struct perf_session, header);
1426
1427 nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS); 1424 nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS);
1428 if (!nr_sections) 1425 if (!nr_sections)
1429 return 0; 1426 return 0;