dzn: Drop unneeded goto statement in dzn_compute_pipeline_create()

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>
This commit is contained in:
Boris Brezillon 2022-06-22 09:33:12 +02:00 committed by Marge Bot
parent d4630b703d
commit 6236d1eead
1 changed files with 1 additions and 3 deletions

View 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);