From: Samuel Pitoiset Date: Wed, 9 Jan 2019 13:40:28 +0000 (+0100) Subject: radv: remove unnecessary returns in GetPhysicalDevice*Properties() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6e5ce51302e13ab10a0d706322abe746aaa4901;p=mesa.git radv: remove unnecessary returns in GetPhysicalDevice*Properties() These functions return nothing. Signed-off-by: Samuel Pitoiset Reviewed-by: Alex Smith Reviewed-by: Bas Nieuwenhuizen --- 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(