From e5de325e9019fd35d0beed1568136c73dbaf2960 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 25 Apr 2017 10:29:00 -0400 Subject: [PATCH] ecore-drm2: Remove #ifdef for HAVE_ATOMIC in plane_assign function As there is nothing inside this function which requires any Atomic API calls, this #ifdef can be removed and the function can then still be used to assign Primary planes for non-atomic use cases. @fix Signed-off-by: Chris Michael --- src/lib/ecore_drm2/ecore_drm2_plane.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c index 720a610..044fd57 100644 --- a/src/lib/ecore_drm2/ecore_drm2_plane.c +++ b/src/lib/ecore_drm2/ecore_drm2_plane.c @@ -41,7 +41,6 @@ _plane_cursor_size_get(int fd, int *width, int *height) EAPI Ecore_Drm2_Plane * ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb) { -#ifdef HAVE_ATOMIC_DRM Eina_List *l; Ecore_Drm2_Plane *plane; Ecore_Drm2_Plane_State *pstate; @@ -107,9 +106,6 @@ out: output->planes = eina_list_append(output->planes, plane); return plane; -#else - return NULL; -#endif } EAPI void -- 2.7.4