compositor-drm: simplify drm_output_find_by_crtc()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 Oct 2017 10:52:12 +0000 (13:52 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 18 Apr 2018 08:53:54 +0000 (11:53 +0300)
commit9790f8759985f88ef91abe35629fe2fefc6b481f
treef159a839d87cd3101061fe324ea0c0f54965cf1e
parent663d5e9b12b96d670bd598afcc4d5921c827492a
compositor-drm: simplify drm_output_find_by_crtc()

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>
libweston/compositor-drm.c