|
@@ -1156,14 +1156,10 @@ int perf_evlist__set_maps(struct perf_evlist *evlist,
|
|
|
struct cpu_map *cpus,
|
|
|
struct thread_map *threads)
|
|
|
{
|
|
|
- if (evlist->cpus)
|
|
|
- cpu_map__put(evlist->cpus);
|
|
|
-
|
|
|
+ cpu_map__put(evlist->cpus);
|
|
|
evlist->cpus = cpus;
|
|
|
|
|
|
- if (evlist->threads)
|
|
|
- thread_map__put(evlist->threads);
|
|
|
-
|
|
|
+ thread_map__put(evlist->threads);
|
|
|
evlist->threads = threads;
|
|
|
|
|
|
return perf_evlist__propagate_maps(evlist, false);
|