=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: winex11: Get rid of unnecessary assignments.

Alexandre Julliard julliard at winehq.org
Wed May 30 15:30:50 CDT 2018


Module: wine
Branch: master
Commit: 1e37d61eb934a64ee917e08b584292f7560cb779
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1e37d61eb934a64ee917e08b584292f7560cb779

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed May 30 13:00:27 2018 +0200

winex11: Get rid of unnecessary assignments.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/xvidmode.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/winex11.drv/xvidmode.c b/dlls/winex11.drv/xvidmode.c
index f055c3a..ba9cdf7 100644
--- a/dlls/winex11.drv/xvidmode.c
+++ b/dlls/winex11.drv/xvidmode.c
@@ -368,7 +368,7 @@ static void interpolate_gamma_ramp(WORD *dst_r, WORD *dst_g, WORD *dst_b, unsign
 static BOOL xf86vm_get_gamma_ramp(struct x11drv_gamma_ramp *ramp)
 {
     WORD *red, *green, *blue;
-    BOOL ret = FALSE;
+    BOOL ret;
 
     if (xf86vm_gammaramp_size == GAMMA_RAMP_SIZE)
     {
@@ -378,7 +378,7 @@ static BOOL xf86vm_get_gamma_ramp(struct x11drv_gamma_ramp *ramp)
     }
     else
     {
-        if (!(red = heap_calloc(3 * xf86vm_gammaramp_size, sizeof(*red))))
+        if (!(red = heap_calloc(xf86vm_gammaramp_size, 3 * sizeof(*red))))
             return FALSE;
         green = red + xf86vm_gammaramp_size;
         blue = green + xf86vm_gammaramp_size;
@@ -397,7 +397,7 @@ static BOOL xf86vm_get_gamma_ramp(struct x11drv_gamma_ramp *ramp)
 static BOOL xf86vm_set_gamma_ramp(struct x11drv_gamma_ramp *ramp)
 {
     WORD *red, *green, *blue;
-    BOOL ret = FALSE;
+    BOOL ret;
 
     if (xf86vm_gammaramp_size == GAMMA_RAMP_SIZE)
     {
@@ -407,7 +407,7 @@ static BOOL xf86vm_set_gamma_ramp(struct x11drv_gamma_ramp *ramp)
     }
     else
     {
-        if (!(red = heap_calloc(3 * xf86vm_gammaramp_size, sizeof(*red))))
+        if (!(red = heap_calloc(xf86vm_gammaramp_size, 3 * sizeof(*red))))
             return FALSE;
         green = red + xf86vm_gammaramp_size;
         blue = green + xf86vm_gammaramp_size;




More information about the wine-cvs mailing list