summaryrefslogtreecommitdiffstats
path: root/ui/vnc-enc-tight.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-07-04 17:39:17 +0200
committerGerd Hoffmann2018-08-24 08:40:11 +0200
commit949ed4c227395473cdd3748cc62f4e96bfc9c142 (patch)
tree1468e488c0092f2a62fc239ac8c78342c3600d7b /ui/vnc-enc-tight.c
parentui/sdl2: Fix broken -full-screen CLI option (diff)
downloadqemu-949ed4c227395473cdd3748cc62f4e96bfc9c142.tar.gz
qemu-949ed4c227395473cdd3748cc62f4e96bfc9c142.tar.xz
qemu-949ed4c227395473cdd3748cc62f4e96bfc9c142.zip
ui/vnc: Remove useless parenthesis around DIV_ROUND_UP macro
Patch created mechanically by rerunning: $ spatch --sp-file scripts/coccinelle/round.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20180704153919.12432-7-f4bug@amsat.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/vnc-enc-tight.c')
-rw-r--r--ui/vnc-enc-tight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
index f38aceb4da..0b4a5ac71f 100644
--- a/ui/vnc-enc-tight.c
+++ b/ui/vnc-enc-tight.c
@@ -979,7 +979,7 @@ static int send_mono_rect(VncState *vs, int x, int y,
}
#endif
- bytes = (DIV_ROUND_UP(w, 8)) * h;
+ bytes = DIV_ROUND_UP(w, 8) * h;
vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLICIT_FILTER) << 4);
vnc_write_u8(vs, VNC_TIGHT_FILTER_PALETTE);