[Mesa-dev] [PATCH 1/9] radv: remove redundant returns

Thomas Hindoe Paaboel Andersen phomes at gmail.com
Tue Apr 11 22:03:59 UTC 2017


>From 1811ccf1
---
 src/amd/vulkan/radv_device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 5f14394..9138a00 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -749,7 +749,6 @@ void radv_GetPhysicalDeviceQueueFamilyProperties(
 	RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
 	if (!pQueueFamilyProperties) {
 		return radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL);
-		return;
 	}
 	VkQueueFamilyProperties *properties[] = {
 		pQueueFamilyProperties + 0,
@@ -768,7 +767,6 @@ void radv_GetPhysicalDeviceQueueFamilyProperties2KHR(
 	RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
 	if (!pQueueFamilyProperties) {
 		return radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL);
-		return;
 	}
 	VkQueueFamilyProperties *properties[] = {
 		&pQueueFamilyProperties[0].queueFamilyProperties,
-- 
2.9.3



More information about the mesa-dev mailing list