vk/device: Remove unneeded checks for NULL
This commit is contained in:
+3
-6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user