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

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Apr 11 22:20:25 UTC 2017


Patches 1 & 6 are

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Wed, Apr 12, 2017 at 12:03 AM, Thomas Hindoe Paaboel Andersen
<phomes at gmail.com> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list