From: Jason Ekstrand Date: Wed, 15 Jul 2015 22:19:59 +0000 (-0700) Subject: vk/device: Remove unneeded checks for NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1c78ebe53614466b5a45b636aa4b7f625d88acf;p=mesa.git vk/device: Remove unneeded checks for NULL --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 454e8f48f42..14a93c9af88 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -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);