dzn: Drop unneeded goto statement in dzn_compute_pipeline_create()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 22 Jun 2022 07:33:12 +0000 (09:33 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 13:02:23 +0000 (13:02 +0000)
The 'out' label is placed just after the if () block, we can thus
remove the 'goto out;' statement.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17140>

src/microsoft/vulkan/dzn_pipeline.c

index 1fab857..4a6c463 100644 (file)
@@ -1701,10 +1701,8 @@ dzn_compute_pipeline_create(struct dzn_device *device,
 
    if (FAILED(ID3D12Device2_CreatePipelineState(device->dev, &stream_desc,
                                                 &IID_ID3D12PipelineState,
-                                                (void **)&pipeline->base.state))) {
+                                                (void **)&pipeline->base.state)))
       ret = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
-      goto out;
-   }
 
 out:
    ralloc_free(nir);