devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=65bf9c6e0f9e89910e2a685eeabc96b2d0a98cc3

commit 65bf9c6e0f9e89910e2a685eeabc96b2d0a98cc3
Author: Christopher Michael <cp.mich...@samsung.com>
Date:   Wed Feb 6 10:00:51 2019 -0500

    ecore-drm2: Remove useless if check
    
    _ecore_drm2_use_atomic is already checked just above this, so there is
    no need for this if statement
---
 src/lib/ecore_drm2/ecore_drm2_outputs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c 
b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 293a78eec2..92551d0d72 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -891,10 +891,7 @@ _output_destroy(Ecore_Drm2_Device *dev EINA_UNUSED, 
Ecore_Drm2_Output *output)
      {
         if (output->prep.atomic_req)
           sym_drmModeAtomicFree(output->prep.atomic_req);
-     }
 
-   if (_ecore_drm2_use_atomic)
-     {
         EINA_LIST_FREE(output->plane_states, pstate)
           free(pstate);
 

-- 


Reply via email to