qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 09/10] vnc: simple clean up


From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 09/10] vnc: simple clean up
Date: Fri, 12 May 2017 13:51:34 +0200

From: Wei Qi <address@hidden>

It is unnecessary to assign 'packed_bytes' to 'estimated_bytes', because 
'estimated_bytes' unused after assignment.

Signed-off-by: Wei Qi <address@hidden>
Reviewed-by: Sahid Orentino Ferdjaoui <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
 ui/vnc-enc-zrle.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ui/vnc-enc-zrle.c b/ui/vnc-enc-zrle.c
index 5489870e70..fd63d4f688 100644
--- a/ui/vnc-enc-zrle.c
+++ b/ui/vnc-enc-zrle.c
@@ -163,7 +163,6 @@ static void zrle_choose_palette_rle(VncState *vs, int w, 
int h,
             if (packed_bytes < estimated_bytes) {
                 *use_rle = false;
                 *use_palette = true;
-                estimated_bytes = packed_bytes;
             }
         }
     }
-- 
2.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]