struct maps_list *ml;
if (af->pid) {
- if (!pf->ml)
+ if (list_empty(&pf->ml.list)) {
return;
- if (list_empty(&pf->ml->list)) {
- ml = list_to_maps_list(&pf->ml->list);
- if (ml->map->pid == af->pid)
- goto get_stats;
}
- list_for_each_entry(ml, &pf->ml->list, list) {
+ list_for_each_entry(ml, &pf->ml.list, list) {
if (ml->map->pid == af->pid)
goto get_stats;
}