From a6e5ce51302e13ab10a0d706322abe746aaa4901 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 9 Jan 2019 14:40:28 +0100 Subject: [PATCH] radv: remove unnecessary returns in GetPhysicalDevice*Properties() These functions return nothing. Signed-off-by: Samuel Pitoiset Reviewed-by: Alex Smith Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ba1d5f24a78..6d91cfc95df 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1299,7 +1299,7 @@ void radv_GetPhysicalDeviceQueueFamilyProperties( { RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); if (!pQueueFamilyProperties) { - return radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL); + radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL); return; } VkQueueFamilyProperties *properties[] = { @@ -1318,7 +1318,7 @@ void radv_GetPhysicalDeviceQueueFamilyProperties2( { RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); if (!pQueueFamilyProperties) { - return radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL); + radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL); return; } VkQueueFamilyProperties *properties[] = { @@ -1343,8 +1343,8 @@ void radv_GetPhysicalDeviceMemoryProperties2( VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2 *pMemoryProperties) { - return radv_GetPhysicalDeviceMemoryProperties(physicalDevice, - &pMemoryProperties->memoryProperties); + radv_GetPhysicalDeviceMemoryProperties(physicalDevice, + &pMemoryProperties->memoryProperties); } VkResult radv_GetMemoryHostPointerPropertiesEXT( -- 2.30.2