[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] vnc: simple clean up
From: |
weiqi |
Subject: |
[Qemu-devel] [PATCH 2/3] vnc: simple clean up |
Date: |
Fri, 7 Apr 2017 14:58:58 +0800 |
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>
---
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 5489870..fd63d4f 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;
}
}
}
--
1.8.3.1
- [Qemu-devel] [PATCH 2/3] vnc: simple clean up,
weiqi <=