vk/wsi: avoid reading uninitialised memory
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 17 Jul 2018 12:13:40 +0000 (13:13 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 23 Aug 2018 13:47:59 +0000 (14:47 +0100)
commit993a456360df6dc40f98bd199d3cbd259dd91a42
tree72f4aa3b4139ba9e17472541d1b249190f80ac84
parenta0f6a1194464611bd93491c6d066b07db0615f27
vk/wsi: avoid reading uninitialised memory

It will be ignored by x11_swapchain_result() anyway (because reaching
the `fail` label without setting `result` means the swapchain status was
already a hard error), but the compiler still complains about reading
uninitialised memory.

While at it, drop the unused assignment right before returning.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/vulkan/wsi/wsi_common_x11.c