From f857046559abc36e250540455a6f6c82fe87479f Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 27 Oct 2017 14:06:51 +0300 Subject: [PATCH] compositor-drm: simplify drm_output_find_special_plane() As these planes are allocated on output enable and freed on output disable, there cannot be a match in the pending_output_list. Signed-off-by: Pekka Paalanen Reviewed-by: Daniel Stone Acked-by: Derek Foreman --- libweston/compositor-drm.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index add07c06f..65f4378d4 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -3596,14 +3596,6 @@ drm_output_find_special_plane(struct drm_backend *b, struct drm_output *output, /* On some platforms, primary/cursor planes can roam * between different CRTCs, so make sure we don't claim the * same plane for two outputs. */ - wl_list_for_each(tmp, &b->compositor->pending_output_list, - base.link) { - if (tmp->cursor_plane == plane || - tmp->scanout_plane == plane) { - found_elsewhere = true; - break; - } - } wl_list_for_each(tmp, &b->compositor->output_list, base.link) { if (tmp->cursor_plane == plane ||