As CRTC is allocated on output enable and deallocated on output disable,
there cannot be any matches in find-by-crtc from the
pending_output_list.
Remove the loop over pending_output_list as never finding anything by
definition.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
return output;
}
- wl_list_for_each(output, &b->compositor->pending_output_list,
- base.link) {
- if (output->crtc_id == crtc_id)
- return output;
- }
-
return NULL;
}