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]
This commit is contained in:
Stefan Schmidt 2015-06-08 16:59:45 +02:00
parent ef81feff16
commit d50cebbd4f
1 changed files with 1 additions and 3 deletions

View File

@ -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