Selaa lähdekoodia

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 <weiqi4@huawei.com>
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Wei Qi 8 vuotta sitten
vanhempi
commit
761d0f97a4
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      ui/vnc-enc-zrle.c

+ 0 - 1
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;
             }
         }
     }