[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 13/17] hw/display/qxl: Remove unneeded variable assignment
From: |
Laurent Vivier |
Subject: |
[PULL 13/17] hw/display/qxl: Remove unneeded variable assignment |
Date: |
Wed, 19 Feb 2020 11:16:08 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Fix warning reported by Clang static code analyzer:
hw/display/qxl.c:1634:14: warning: Value stored to 'orig_io_port' during its
initialization is never read
uint32_t orig_io_port = io_port;
^~~~~~~~~~~~ ~~~~~~~
Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
hw/display/qxl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index 64884da70857..21a43a1d5ec2 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -1631,7 +1631,7 @@ static void ioport_write(void *opaque, hwaddr addr,
PCIQXLDevice *d = opaque;
uint32_t io_port = addr;
qxl_async_io async = QXL_SYNC;
- uint32_t orig_io_port = io_port;
+ uint32_t orig_io_port;
if (d->guest_bug && io_port != QXL_IO_RESET) {
return;
--
2.24.1
- [PULL 03/17] scripts/checkpatch.pl: Detect superfluous semicolon in C code, (continued)
- [PULL 03/17] scripts/checkpatch.pl: Detect superfluous semicolon in C code, Laurent Vivier, 2020/02/19
- [PULL 06/17] hw/m68k/next-cube: Remove superfluous semicolon, Laurent Vivier, 2020/02/19
- [PULL 08/17] hw/vfio/display: Remove superfluous semicolon, Laurent Vivier, 2020/02/19
- [PULL 16/17] hw/nios2:fix leak of fdevice tree blob, Laurent Vivier, 2020/02/19
- [PULL 01/17] mailmap: Add entry for Yu-Chen Lin, Laurent Vivier, 2020/02/19
- [PULL 15/17] hw/net/rocker: Report unimplemented feature with qemu_log_mask(UNIMP), Laurent Vivier, 2020/02/19
- [PULL 10/17] target/i386/whpx: Remove superfluous semicolon, Laurent Vivier, 2020/02/19
- [PULL 17/17] hw/xtensa/xtfpga:fix leak of fdevice tree blob, Laurent Vivier, 2020/02/19
- [PULL 04/17] audio/alsaaudio: Remove superfluous semicolons, Laurent Vivier, 2020/02/19
- [PULL 11/17] tests/qtest/libqos/qgraph: Remove superfluous semicolons, Laurent Vivier, 2020/02/19
- [PULL 13/17] hw/display/qxl: Remove unneeded variable assignment,
Laurent Vivier <=
- [PULL 14/17] hw/block/pflash_cfi02: Remove unneeded variable assignment, Laurent Vivier, 2020/02/19
- [PULL 12/17] contrib/rdmacm-mux: Remove superfluous semicolon, Laurent Vivier, 2020/02/19
- [PULL 09/17] ui/input-barrier: Remove superfluous semicolon, Laurent Vivier, 2020/02/19
- Re: [PULL 00/17] Trivial branch patches, Peter Maydell, 2020/02/20