diff options
author | Jason Ekstrand <[email protected]> | 2015-07-15 15:19:59 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-15 15:22:32 -0700 |
commit | e1c78ebe53614466b5a45b636aa4b7f625d88acf (patch) | |
tree | 76b96aa421a4299206c7fdec79c0aa255d0e9c7a /src/vulkan/device.c | |
parent | f4748bff59b21c51092a081df48d7d00f2bfbfef (diff) |
vk/device: Remove unneeded checks for NULL
Diffstat (limited to 'src/vulkan/device.c')
-rw-r--r-- | src/vulkan/device.c | 9 |
1 files 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); |