Skip to contentSkip to conversation

perf tools: Fix feature-bits rework fallout, remove unused variable

tip:perf/core tip-bot for Ingo Molnar 1 participant 1 message Dec 29, 2011 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  f2328062726d36e562f1458d6346b77aa048acad
Gitweb:     http://git.kernel.org/tip/f2328062726d36e562f1458d6346b77aa048acad
Author:     Ingo Molnar <[email protected]>
AuthorDate: Thu, 29 Dec 2011 21:26:17 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 29 Dec 2011 21:26:17 +0100

perf tools: Fix feature-bits rework fallout, remove unused variable

Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
Cc Robert Richter <[email protected]>
---
 tools/perf/util/header.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
tools/perf/util/header.c +0 -3
index e509a9d..3e7e0b0 100644
@@ -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;