aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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 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,
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;