From 761d0f97a40a3a6b6a0f2fb75eea47a0cea42d14 Mon Sep 17 00:00:00 2001 From: Wei Qi Date: Fri, 7 Apr 2017 14:58:58 +0800 Subject: [PATCH] vnc: simple clean up It is unnecessary to assign 'packed_bytes' to 'estimated_bytes', because 'estimated_bytes' unused after assignment. Signed-off-by: Wei Qi Reviewed-by: Sahid Orentino Ferdjaoui Signed-off-by: Gerd Hoffmann --- 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; } } }