Ecore_evas wayland: remove double parenthesis around comparison.
authorTom Hacohen <tom@stosb.com>
Wed, 22 Apr 2015 12:13:19 +0000 (13:13 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 22 Apr 2015 12:13:21 +0000 (13:13 +0100)
Double praenthesis should be used around assignments, not comparisons.
Doing this correctly all aronud lets the compiler warn us about potential
mistakes.

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index 7e9e353694b437979f1d9863df51d3d363eaf5ff..b5cfa562d56755c395195495bfd121301770aba8 100644 (file)
@@ -380,7 +380,7 @@ _ecore_evas_wayland_shm_alpha_do(Ecore_Evas *ee, int alpha)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    if (!ee) return;
-   if ((ee->alpha == alpha)) return;
+   if (ee->alpha == alpha) return;
    ee->alpha = alpha;
    wdata = ee->engine.data;
 
@@ -419,7 +419,7 @@ _ecore_evas_wayland_shm_transparent_do(Ecore_Evas *ee, int transparent)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    if (!ee) return;
-   if ((ee->transparent == transparent)) return;
+   if (ee->transparent == transparent) return;
    ee->transparent = transparent;
 
    wdata = ee->engine.data;