[Mesa-dev] [PATCH 2/5] anv: drop the return type for anv_queue_init()

Jason Ekstrand jason at jlekstrand.net
Sat Nov 26 05:30:17 UTC 2016


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Fri, Nov 25, 2016 at 6:34 AM, Mun Gwan-gyeong <elongbug at gmail.com> wrote:

> anv_queue_init() always returns VK_SUCCESS, so caller does not need
> to check return value of anv_queue_init().
>
> Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
> ---
>  src/intel/vulkan/anv_device.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 2c8ac49..0fd7d41 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -710,14 +710,12 @@ PFN_vkVoidFunction anv_GetDeviceProcAddr(
>     return anv_lookup_entrypoint(&device->info, pName);
>  }
>
> -static VkResult
> +static void
>  anv_queue_init(struct anv_device *device, struct anv_queue *queue)
>  {
>     queue->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
>     queue->device = device;
>     queue->pool = &device->surface_state_pool;
> -
> -   return VK_SUCCESS;
>  }
>
>  static void
> --
> 2.10.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161125/eb6e1532/attachment.html>


More information about the mesa-dev mailing list