radv: remove unnecessary returns in GetPhysicalDevice*Properties()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 9 Jan 2019 13:40:28 +0000 (14:40 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 15 Jan 2019 10:18:17 +0000 (11:18 +0100)
These functions return nothing.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index ba1d5f24a7869db32b0594a87070428accfd649e..6d91cfc95df4abfd02b2e160b151f4653eeb817f 100644 (file)
@@ -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(