diff options
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index b20e40c74468..1f407f7352a7 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -2237,6 +2237,7 @@ static int check_magic_endian(u64 magic, uint64_t hdr_sz, | |||
2237 | * - unique number to identify actual perf.data files | 2237 | * - unique number to identify actual perf.data files |
2238 | * - encode endianness of file | 2238 | * - encode endianness of file |
2239 | */ | 2239 | */ |
2240 | ph->version = PERF_HEADER_VERSION_2; | ||
2240 | 2241 | ||
2241 | /* check magic number with one endianness */ | 2242 | /* check magic number with one endianness */ |
2242 | if (magic == __perf_magic2) | 2243 | if (magic == __perf_magic2) |
@@ -2247,7 +2248,6 @@ static int check_magic_endian(u64 magic, uint64_t hdr_sz, | |||
2247 | return -1; | 2248 | return -1; |
2248 | 2249 | ||
2249 | ph->needs_swap = true; | 2250 | ph->needs_swap = true; |
2250 | ph->version = PERF_HEADER_VERSION_2; | ||
2251 | 2251 | ||
2252 | return 0; | 2252 | return 0; |
2253 | } | 2253 | } |