diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-06-03 12:59:07 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-06-05 10:00:44 -0400 |
commit | 027d974004739e900e1728e749f3a111a9c234a6 (patch) | |
tree | 9adbed674f806526a9f250614e148d99a2e714b2 | |
parent | 39c28cbe8e61011f2e4abf9521e27dba848d48e0 (diff) |
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.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_fb.c | 6 |
1 files 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 18ba8ad5d3..69c6107617 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 | |||
141 | ecore_drm_fb_dirty(Ecore_Drm_Fb *fb, Eina_Rectangle *rects, unsigned int count) | 141 | ecore_drm_fb_dirty(Ecore_Drm_Fb *fb, Eina_Rectangle *rects, unsigned int count) |
142 | { | 142 | { |
143 | EINA_SAFETY_ON_NULL_RETURN(fb); | 143 | EINA_SAFETY_ON_NULL_RETURN(fb); |
144 | EINA_SAFETY_ON_NULL_RETURN(rects); | 144 | |
145 | EINA_SAFETY_ON_TRUE_RETURN(!count); | 145 | if ((!rects) || (!count)) return; |
146 | 146 | ||
147 | #ifdef DRM_MODE_FEATURE_DIRTYFB | 147 | #ifdef DRM_MODE_FEATURE_DIRTYFB |
148 | drmModeClip *clip; | 148 | drmModeClip *clip; |
@@ -238,8 +238,6 @@ ecore_drm_fb_send(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb, Ecore_Drm_Pageflip_Cb | |||
238 | EINA_LIST_FOREACH(dev->outputs, l, output) | 238 | EINA_LIST_FOREACH(dev->outputs, l, output) |
239 | if (output->enabled) cb->count++; | 239 | if (output->enabled) cb->count++; |
240 | 240 | ||
241 | /* cb->count = eina_list_count(dev->outputs); */ | ||
242 | |||
243 | EINA_LIST_FOREACH(dev->outputs, l, output) | 241 | EINA_LIST_FOREACH(dev->outputs, l, output) |
244 | { | 242 | { |
245 | if ((!output->enabled) || (!output->current_mode)) continue; | 243 | if ((!output->enabled) || (!output->current_mode)) continue; |