vk/device: Remove unneeded checks for NULL

This commit is contained in:
Jason Ekstrand
2015-07-15 15:19:59 -07:00
parent f4748bff59
commit e1c78ebe53
+3 -6
View File
@@ -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);