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>
This commit is contained in:
@@ -1415,15 +1415,12 @@ static int perf_header__adds_write(struct perf_header *header,
|
|||||||
struct perf_evlist *evlist, int fd)
|
struct perf_evlist *evlist, int fd)
|
||||||
{
|
{
|
||||||
int nr_sections;
|
int nr_sections;
|
||||||
struct perf_session *session;
|
|
||||||
struct perf_file_section *feat_sec, *p;
|
struct perf_file_section *feat_sec, *p;
|
||||||
int sec_size;
|
int sec_size;
|
||||||
u64 sec_start;
|
u64 sec_start;
|
||||||
int feat;
|
int feat;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
session = container_of(header, struct perf_session, header);
|
|
||||||
|
|
||||||
nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS);
|
nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS);
|
||||||
if (!nr_sections)
|
if (!nr_sections)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user