From: Samuel Pitoiset Date: Fri, 10 Nov 2017 08:17:59 +0000 (+0100) Subject: radv: remove useless memset() in radv_CreateFence() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d95fde661dfc7824527b341ce6ea7c13b4dc9a1;p=mesa.git radv: remove useless memset() in radv_CreateFence() All radv_fence fields are initialized here. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- 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();