hermet pushed a commit to branch master.

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

commit 995269982066db3b402e6cbde02d65743c722b1d
Author: Jaehyun Cho <[email protected]>
Date:   Wed May 28 11:24:56 2014 +0900

    evas_draw_main: Remove unnecessary conditional expression
    
    Summary: The comparison dc with NULL is not necessary. So remove the 
unnecessary conditional expression.
    
    Reviewers: Hermet
    
    Reviewed By: Hermet
    
    CC: seoz, cedric
    
    Differential Revision: https://phab.enlightenment.org/D908
---
 src/lib/evas/common/evas_draw_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/common/evas_draw_main.c 
b/src/lib/evas/common/evas_draw_main.c
index 16078b8..d310fe5 100644
--- a/src/lib/evas/common/evas_draw_main.c
+++ b/src/lib/evas/common/evas_draw_main.c
@@ -146,7 +146,7 @@ evas_common_draw_context_set_color(RGBA_Draw_Context *dc, 
int r, int g, int b, i
    A_VAL(&(dc->col.col)) = (DATA8)a;
 #ifdef HAVE_PIXMAN
 #if defined(PIXMAN_FONT) || defined(PIXMAN_RECT) || defined(PIXMAN_LINE) || 
defined(PIXMAN_POLY)
-   if (dc && dc->col.pixman_color_image)
+   if (dc->col.pixman_color_image)
      pixman_image_unref(dc->col.pixman_color_image);
    
    pixman_color_t pixman_color;

-- 


Reply via email to