From 995269982066db3b402e6cbde02d65743c722b1d Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Wed, 28 May 2014 11:24:56 +0900 Subject: [PATCH] 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 16078b8181..d310fe5f4d 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;