stefan pushed a commit to branch master.

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

commit d50cebbd4f8300b44ee7656804a103a4d38f6d1d
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Mon Jun 8 16:59:45 2015 +0200

    modules/evas/engines/software_generic: No need to check enums for smaller 0
    
    Evas_Image_Orient is an enum starting at 0 thus we never go below 0. Remove
    unneeded checks.
    
    modules/evas/engines/software_generic/evas_engine.c:1558:4: warning: 
comparison of unsigned expression >= 0 is always true [-Wtype-limits]
    modules/evas/engines/software_generic/evas_engine.c:1560:8: warning: 
comparison of unsigned expression >= 0 is always true [-Wtype-limits]
---
 src/modules/evas/engines/software_generic/evas_engine.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/modules/evas/engines/software_generic/evas_engine.c 
b/src/modules/evas/engines/software_generic/evas_engine.c
index 3a796f6..0470841 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1555,9 +1555,7 @@ eng_image_orient_set(void *data EINA_UNUSED, void *image, 
Evas_Image_Orient orie
 
    if (!pixels_out || !pixels_in) goto on_error;
 
-   if ((im->orient >= EVAS_IMAGE_ORIENT_0) &&
-       (im->orient <= EVAS_IMAGE_ORIENT_270) &&
-       (orient >= EVAS_IMAGE_ORIENT_0) &&
+   if ((im->orient <= EVAS_IMAGE_ORIENT_270) &&
        (orient <= EVAS_IMAGE_ORIENT_270))
      {
         // we are rotating from one anglee to another, so figure out delta

-- 


Reply via email to