vk/device: Remove unneeded checks for NULL
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 15 Jul 2015 22:19:59 +0000 (15:19 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 15 Jul 2015 22:22:32 +0000 (15:22 -0700)
src/vulkan/device.c

index 454e8f48f428a51ed8b73d44d51024668299382d..14a93c9af880cf968a4123d79432c61c545ff1bc 100644 (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);