aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorChen Qun <kuhn.chenqun@huawei.com>2020-08-27 19:03:11 +0800
committerLaurent Vivier <laurent@vivier.eu>2020-09-01 12:06:15 +0200
commit2d27ed8231ea3b28014ea2df638dbd020b406ee9 (patch)
tree0e48e45922d59bd9f973831068430d0e9794a448 /hw
parentcad2197ba10f5634b87ded155ad85e060f6926eb (diff)
downloadqemu-2d27ed8231ea3b28014ea2df638dbd020b406ee9.zip
qemu-2d27ed8231ea3b28014ea2df638dbd020b406ee9.tar.gz
qemu-2d27ed8231ea3b28014ea2df638dbd020b406ee9.tar.bz2
hw/display/vga:Remove redundant statement in vga_draw_graphic()
Clang static code analyzer show warning: hw/display/vga.c:1677:9: warning: Value stored to 'update' is never read update = full_update; ^ ~~~~~~~~~~~ Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Li Qiang <liq3ea@gmail.com> Message-Id: <20200827110311.164316-11-kuhn.chenqun@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r--hw/display/vga.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/display/vga.c b/hw/display/vga.c
index 061fd9a..836ad50 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -1674,7 +1674,6 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
if (!(s->cr[VGA_CRTC_MODE] & 2)) {
addr = (addr & ~0x8000) | ((y1 & 2) << 14);
}
- update = full_update;
page0 = addr & s->vbe_size_mask;
page1 = (addr + bwidth - 1) & s->vbe_size_mask;
if (full_update) {