mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 21:20:12 +01:00
vk/device: Remove unneeded checks for NULL
This commit is contained in:
parent
f4748bff59
commit
e1c78ebe53
1 changed files with 3 additions and 6 deletions
|
|
@ -4129,12 +4129,9 @@ VkResult anv_DestroyRenderPass(
|
|||
*/
|
||||
struct anv_subpass *subpass = &pass->subpasses[i];
|
||||
|
||||
if (subpass->input_attachments)
|
||||
anv_device_free(device, subpass->input_attachments);
|
||||
if (subpass->color_attachments)
|
||||
anv_device_free(device, subpass->color_attachments);
|
||||
if (subpass->resolve_attachments)
|
||||
anv_device_free(device, subpass->resolve_attachments);
|
||||
anv_device_free(device, subpass->input_attachments);
|
||||
anv_device_free(device, subpass->color_attachments);
|
||||
anv_device_free(device, subpass->resolve_attachments);
|
||||
}
|
||||
|
||||
anv_device_free(device, pass);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue