evas psd loader - remove unneeded extra check in if
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 29 Jul 2017 01:15:19 +0000 (10:15 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 29 Jul 2017 01:37:51 +0000 (10:37 +0900)
one if condition is always true by virtual of previous if statements
and drop-through so can remove. not actually any bug but analysers
don't like it

found by PVS studio

src/modules/evas/image_loaders/psd/evas_image_load_psd.c

index f39fd28..3c0cf5b 100644 (file)
@@ -218,7 +218,7 @@ read_compressed_channel(const unsigned char *map, size_t length, size_t *positio
 
              i += headbyte + 1;
           }
-        else if (headbyte >= -127 && headbyte <= -1)
+        else if (headbyte >= -127)
           {
              int run;