diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-02-15 17:15:56 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-02-18 20:20:49 +0100 |
commit | 380e6d811952d39ec51adda9756a07528eac96bb (patch) | |
tree | 68a2415476832e7b84c9731cd5fecd48839745e4 /hw/display | |
parent | 1e1f6ab0eb8703589590f340c0c429298cf17905 (diff) | |
download | qemu-380e6d811952d39ec51adda9756a07528eac96bb.zip |
hw/display/qxl: Remove unneeded variable assignment
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é <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200215161557.4077-3-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/qxl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 64884da708..21a43a1d5e 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; |