radv: remove unnecessary NULL check in TrimCommandPool()

This function seems rarely used or maybe never but I noticed this.

From the Vulkan spec:

    "VUID-vkTrimCommandPool-commandPool-parameter
     commandPool must be a valid VkCommandPool handle".

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15164>
This commit is contained in:
Samuel Pitoiset 2022-02-23 19:46:15 +01:00 committed by Marge Bot
parent 269b1232ee
commit 01ec899083

View file

@ -5811,9 +5811,6 @@ radv_TrimCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolTr
{
RADV_FROM_HANDLE(radv_cmd_pool, pool, commandPool);
if (!pool)
return;
list_for_each_entry_safe(struct radv_cmd_buffer, cmd_buffer, &pool->free_cmd_buffers, pool_link)
{
radv_destroy_cmd_buffer(cmd_buffer);