From: Gwan-gyeong Mun Date: Fri, 25 Nov 2016 14:34:43 +0000 (+0900) Subject: anv: drop the return type for anv_queue_init() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca4706960c27e7ff46ce6ffa64cdaccfd2dee28b;p=mesa.git 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 Reviewed-by: Emil Velikov Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 0518aafadbe..0b440fb6cfc 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