vnc: simple clean up
PATCH 2/3 vnc: simple clean up
From: Wei Qi <[email protected]>
It is unnecessary to assign 'packed_bytes' to 'estimated_bytes', because 'estimated_bytes' unused after assignment.
Signed-off-by Wei Qi <[email protected]>
--- ui/vnc-enc-zrle.c | 1 - 1 file changed, 1 deletion(-)
ui/vnc-enc-zrle.c +0 -1
@@ -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; } } }
Signature · 1 line
1.8.3.1
Quoted 8 lines · weiqi
From: Wei Qi <[email protected]>
It is unnecessary to assign '
packed_bytes' to 'estimated_bytes', because 'estimated_bytes' unused after assignment.Signed-off-by Wei Qi <[email protected]>--- ui/vnc-enc-zrle.c | 1 - 1 file changed, 1 deletion(-)
Reviewed-by Sahid Orentino Ferdjaoui <[email protected]>
ui/vnc-enc-zrle.c static void zrle_choose_palette_rle(VncState *vs, int w, int h, · line 166
Quoted 10 lines
ui/vnc-enc-zrle.c +0
-1@@ -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;
I verified that 'estimated_bytes' is well a local variable defined in 'zrle_choose_palette_rle(...)'.
Quoted 7 lines
ui/vnc-enc-zrle.c +0
-0} } }Signature · 1 line
1.8.3.1