From 3d95fde661dfc7824527b341ce6ea7c13b4dc9a1 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 10 Nov 2017 09:17:59 +0100 Subject: [PATCH] radv: remove useless memset() in radv_CreateFence() All radv_fence fields are initialized here. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 5754816b149..aa0511fd8d5 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2544,7 +2544,6 @@ VkResult radv_CreateFence( if (!fence) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); - memset(fence, 0, sizeof(*fence)); fence->submitted = false; fence->signalled = !!(pCreateInfo->flags & VK_FENCE_CREATE_SIGNALED_BIT); fence->fence = device->ws->create_fence(); -- 2.30.2