]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
vnc: simple clean up
authorWei Qi <weiqi4@huawei.com>
Fri, 7 Apr 2017 06:58:58 +0000 (14:58 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 12 May 2017 10:34:31 +0000 (12:34 +0200)
It is unnecessary to assign 'packed_bytes' to 'estimated_bytes', because 'estimated_bytes' unused after assignment.

Signed-off-by: Wei Qi <weiqi4@huawei.com>
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-enc-zrle.c

index 5489870e700d6d8b246de8d0bc5595d3c955e67d..fd63d4f6886e2b3642da31720b75e8b645e809e9 100644 (file)
@@ -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;
             }
         }
     }