anv: drop the return type for anv_queue_init()
authorGwan-gyeong Mun <elongbug@gmail.com>
Fri, 25 Nov 2016 14:34:43 +0000 (23:34 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Nov 2016 21:11:25 +0000 (21:11 +0000)
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@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c

index 0518aaf..0b440fb 100644 (file)
@@ -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