devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=027d974004739e900e1728e749f3a111a9c234a6

commit 027d974004739e900e1728e749f3a111a9c234a6
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Jun 3 12:59:07 2015 -0400

    ecore-drm: Remove erroneous error messages from EINA_SAFETY checks
    
    Summary: As the gl_drm engine code will almost always pass NULL
    rectangles, remove the EINA_SAFETY checks so that logs don't fill with
    meaningles error messages.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_fb.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_fb.c b/src/lib/ecore_drm/ecore_drm_fb.c
index 18ba8ad..69c6107 100644
--- a/src/lib/ecore_drm/ecore_drm_fb.c
+++ b/src/lib/ecore_drm/ecore_drm_fb.c
@@ -141,8 +141,8 @@ EAPI void
 ecore_drm_fb_dirty(Ecore_Drm_Fb *fb, Eina_Rectangle *rects, unsigned int count)
 {
    EINA_SAFETY_ON_NULL_RETURN(fb);
-   EINA_SAFETY_ON_NULL_RETURN(rects);
-   EINA_SAFETY_ON_TRUE_RETURN(!count);
+
+   if ((!rects) || (!count)) return;
 
 #ifdef DRM_MODE_FEATURE_DIRTYFB
    drmModeClip *clip;
@@ -238,8 +238,6 @@ ecore_drm_fb_send(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb, 
Ecore_Drm_Pageflip_Cb
    EINA_LIST_FOREACH(dev->outputs, l, output)
      if (output->enabled) cb->count++;
 
-   /* cb->count = eina_list_count(dev->outputs); */
-
    EINA_LIST_FOREACH(dev->outputs, l, output)
      {
         if ((!output->enabled) || (!output->current_mode)) continue;

-- 


Reply via email to