turnip: Drop a dead error checking path in device init.
authorEric Anholt <eric@anholt.net>
Wed, 16 Sep 2020 02:18:12 +0000 (19:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 19 Oct 2020 18:41:50 +0000 (18:41 +0000)
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

index c98ca46..b59da96 100644 (file)
@@ -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");