[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/11] hw/display/vga:Remove redundant statement in vga_draw_grap
From: |
Chen Qun |
Subject: |
[PATCH 11/11] hw/display/vga:Remove redundant statement in vga_draw_graphic() |
Date: |
Thu, 13 Aug 2020 15:37:12 +0800 |
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>
---
Cc: Gerd Hoffmann <kraxel@redhat.com>
---
hw/display/vga.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/display/vga.c b/hw/display/vga.c
index 061fd9ab8f..836ad50c7b 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) {
--
2.23.0
- Re: [PATCH 06/11] hw/net/virtio-net:Remove redundant statement in virtio_net_rsc_tcp_ctrl_check(), (continued)
- [PATCH 09/11] usb/bus: Remove dead assignment in usb_get_fw_dev_path(), Chen Qun, 2020/08/13
- [PATCH 01/11] hw/arm/virt-acpi-build:Remove dead assignment in build_madt(), Chen Qun, 2020/08/13
- [PATCH 11/11] hw/display/vga:Remove redundant statement in vga_draw_graphic(),
Chen Qun <=
- [PATCH 10/11] hw/intc: Remove redundant statement in exynos4210_combiner_read(), Chen Qun, 2020/08/13
- Re: [PATCH 00/11] trivial patchs for static code analyzer fixes, no-reply, 2020/08/13
- Re: [PATCH 00/11] trivial patchs for static code analyzer fixes, no-reply, 2020/08/13