[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
- [Qemu-devel] [PULL 00/10] ui patch queue, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 06/10] egl-helpers: add missing error check, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 10/10] vnc: replace hweight_long() with ctpopl(), Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 02/10] ui: input-linux: Add absolute event support, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 03/10] virtio-gpu: move virtio_gpu_gl_block, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 09/10] vnc: simple clean up,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 08/10] opengl: add egl-headless display, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 07/10] egl: explicitly ask for core context, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 05/10] egl-helpers: fix display init for x11, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 04/10] egl-helpers: drop support for gles and debug logging, Gerd Hoffmann, 2017/05/12
- [Qemu-devel] [PULL 01/10] ui: Support non-zero minimum values for absolute input axes, Gerd Hoffmann, 2017/05/12
- Re: [Qemu-devel] [PULL 00/10] ui patch queue, Stefan Hajnoczi, 2017/05/15