mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <acme@redhat.com>
This commit is contained in:
parent
fe693d951e
commit
a07dacad8a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue