hermet pushed a commit to branch master.

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

commit bc446e37c1126254212f7e88b9b633eb98bb9fce
Author: Jaehyun Cho <[email protected]>
Date:   Wed May 28 14:29:22 2014 +0900

    evas_gl_rectangle: Remove unnecessary conditional expression
    
    Summary: The comparison gc->dc with NULL is not necessary. So the 
unnecessary conditional expression is removed.
    
    Reviewers: Hermet
    
    CC: seoz, cedric
    
    Differential Revision: https://phab.enlightenment.org/D909
---
 src/modules/evas/engines/gl_common/evas_gl_rectangle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_rectangle.c 
b/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
index d95b5a2..8dd0931 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
@@ -20,7 +20,7 @@ evas_gl_common_rect_draw(Evas_Engine_GL_Context *gc, int x, 
int y, int w, int h)
    evas_common_draw_context_clip_clip(gc->dc, 0, 0, gc->shared->w, 
gc->shared->h);
    /* no cutouts - cut right to the chase */
 
-   if ((gc->dc) && (gc->dc->clip.use))
+   if (gc->dc->clip.use)
      {
         RECTS_CLIP_TO_RECT(x, y, w, h,
                            gc->dc->clip.x, gc->dc->clip.y,

-- 


Reply via email to