summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2020-09-15 19:18:12 -0700
committerMarge Bot <eric+marge@anholt.net>2020-10-19 18:41:50 +0000
commit8a72666e91bd14e8ff1b8246ba636189abe8ddf3 (patch)
tree18d71fb8ff7dface3977ca2105d37dde2f23bff9
parent27b888794624225343287e57f5fcea63f94850b3 (diff)
turnip: Drop a dead error checking path in device init.
The only result != SUCCESS setters above all jump across to the fail label. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6821>
-rw-r--r--src/freedreno/vulkan/tu_device.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index c98ca46a670..b59da961a11 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -124,11 +124,6 @@ tu_physical_device_init(struct tu_physical_device *device,
tu_physical_device_get_supported_extensions(device, &device->supported_extensions);
- if (result != VK_SUCCESS) {
- vk_error(instance, result);
- goto fail;
- }
-
result = tu_wsi_init(device);
if (result != VK_SUCCESS) {
vk_startup_errorf(instance, result, "WSI init failure");