From: Arnaldo Carvalho de Melo Date: Tue, 18 Apr 2023 20:45:34 +0000 (-0300) Subject: perf maps: Use maps__nr_maps() instead of open coded maps->nr_maps X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a07dacad8ac40d1beadb640fe341b5198c1cf097;p=linux.git perf maps: Use maps__nr_maps() instead of open coded maps->nr_maps To use the existing accessor and be consistent. Signef-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 25738775834e9..85787672d335e 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -435,7 +435,7 @@ static struct thread *findnew_guest_code(struct machine *machine, return NULL; /* Assume maps are set up if there are any */ - if (thread->maps->nr_maps) + if (maps__nr_maps(thread->maps)) return thread; host_thread = machine__find_thread(host_machine, -1, pid);