Mesa (master): turnip: Drop a dead error checking path in device init.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 19 19:17:03 UTC 2020
Module: Mesa
Branch: master
Commit: 8a72666e91bd14e8ff1b8246ba636189abe8ddf3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a72666e91bd14e8ff1b8246ba636189abe8ddf3
Author: Eric Anholt <eric at anholt.net>
Date: Tue Sep 15 19:18:12 2020 -0700
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>
---
src/freedreno/vulkan/tu_device.c | 5 -----
1 file changed, 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");
More information about the mesa-commit
mailing list