From e1c78ebe53614466b5a45b636aa4b7f625d88acf Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 15 Jul 2015 15:19:59 -0700 Subject: [PATCH] vk/device: Remove unneeded checks for NULL --- src/vulkan/device.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); -- 2.30.2