perf maps: Use maps__nr_maps() instead of open coded maps->nr_maps

To use the existing accessor and be consistent.
Signef-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent fe693d95
...@@ -435,7 +435,7 @@ static struct thread *findnew_guest_code(struct machine *machine, ...@@ -435,7 +435,7 @@ static struct thread *findnew_guest_code(struct machine *machine,
return NULL; return NULL;
/* Assume maps are set up if there are any */ /* Assume maps are set up if there are any */
if (thread->maps->nr_maps) if (maps__nr_maps(thread->maps))
return thread; return thread;
host_thread = machine__find_thread(host_machine, -1, pid); host_thread = machine__find_thread(host_machine, -1, pid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment