jpeg pushed a commit to branch master.

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

commit b0caec04fbb1679573784382a95e182635a54120
Author: Jean-Philippe Andre <[email protected]>
Date:   Mon Jul 3 16:23:12 2017 +0900

    drm: Fix compilation warnings
---
 src/modules/evas/engines/drm/evas_engine.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/modules/evas/engines/drm/evas_engine.c 
b/src/modules/evas/engines/drm/evas_engine.c
index f5474ab503..e54b809b5a 100644
--- a/src/modules/evas/engines/drm/evas_engine.c
+++ b/src/modules/evas/engines/drm/evas_engine.c
@@ -179,16 +179,16 @@ eng_image_plane_assign(void *data, void *image, int x, 
int y)
    RGBA_Image *img;
    Native *n;
    Ecore_Drm2_Fb *fb = NULL;
-   Ecore_Drm2_Plane *plane;
+   Ecore_Drm2_Plane *plane = NULL;
    struct scanout_handle *g;
 
-   EINA_SAFETY_ON_NULL_RETURN_VAL(image, EINA_FALSE);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(image, NULL);
 
    re = (Render_Engine *)data;
-   EINA_SAFETY_ON_NULL_RETURN_VAL(re, EINA_FALSE);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(re, NULL);
 
    ob = re->generic.ob;
-   EINA_SAFETY_ON_NULL_RETURN_VAL(ob, EINA_FALSE);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(ob, NULL);
 
    img = image;
    n = img->native.data;
@@ -198,7 +198,6 @@ eng_image_plane_assign(void *data, void *image, int x, int 
y)
    if (n->ns.type != EVAS_NATIVE_SURFACE_WL_DMABUF) return NULL;
 
    fb = drm_import_simple_dmabuf(re->fd, &n->ns_data.wl_surface_dmabuf.attr);
-
    if (!fb) return NULL;
 
    g = calloc(1, sizeof(struct scanout_handle));

-- 


Reply via email to