]> git.proxmox.com Git - mirror_qemu.git/commit
ui: Replacing pointer in function
authorSergey Mironov <mironov@fintech.ru>
Thu, 12 Oct 2023 10:44:48 +0000 (13:44 +0300)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Nov 2023 07:45:48 +0000 (11:45 +0400)
commitfb93569e422d4f4b5953dd953c92ba7838309972
tree93a2889063c59edcfb303b1284e8a14451d97fd0
parent5ec0898b057971f0e03d2ecc8b62c58b50f4cb99
ui: Replacing pointer in function

At the end of the first if we see 'vc->gfx.surface = NULL;',
further checking of it is pointless. In the second if, ectx is taken.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Co-developed-by: Linux Verification Center <sdl.qemu@linuxtesting.org>
Signed-off-by: Sergey Mironov <mironov@fintech.ru>
Message-ID: <20231012104448.1251039-1-mironov@fintech.ru>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ui/gtk.c