ecore-drm2: Remove useless if check
authorChristopher Michael <cp.michael@samsung.com>
Wed, 6 Feb 2019 15:00:51 +0000 (10:00 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 6 Feb 2019 22:20:24 +0000 (07:20 +0900)
_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

index 293a78e..92551d0 100644 (file)
@@ -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);