mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
hw/vga.c: remove dead assignment
clang-analyzer points out a redundant assignment. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d7209371b1
commit
c4af120f5f
1
hw/vga.c
1
hw/vga.c
@ -1303,7 +1303,6 @@ static void vga_draw_text(VGACommonState *s, int full_update)
|
||||
line_offset = s->line_offset;
|
||||
|
||||
vga_get_text_resolution(s, &width, &height, &cw, &cheight);
|
||||
x_incr = cw * ((ds_get_bits_per_pixel(s->ds) + 7) >> 3);
|
||||
if ((height * width) > CH_ATTR_SIZE) {
|
||||
/* better than nothing: exit if transient size is too big */
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user