Mesa (master): anv: drop the return type for anv_queue_init()
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Nov 28 21:14:16 UTC 2016
Module: Mesa
Branch: master
Commit: ca4706960c27e7ff46ce6ffa64cdaccfd2dee28b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca4706960c27e7ff46ce6ffa64cdaccfd2dee28b
Author: Gwan-gyeong Mun <elongbug at gmail.com>
Date: Fri Nov 25 23:34:43 2016 +0900
anv: drop the return type for anv_queue_init()
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>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
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 0518aaf..0b440fb 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -737,14 +737,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
More information about the mesa-commit
mailing list