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:
parent
d4630b703d
commit
6236d1eead
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue