Mesa (master): radv: drop the return type for radv_queue_init()

Dave Airlie airlied at kemper.freedesktop.org
Sun Nov 27 23:01:28 UTC 2016


Module: Mesa
Branch: master
Commit: 0a27dd458b5030be58073f6ab84e144a91be1ced
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a27dd458b5030be58073f6ab84e144a91be1ced

Author: Mun Gwan-gyeong <elongbug at gmail.com>
Date:   Fri Nov 25 23:34:44 2016 +0900

radv: drop the return type for radv_queue_init()

radv_queue_init() always returns VK_SUCCESS, so caller does not need
to check return value of radv_queue_init().

Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/vulkan/radv_device.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 1b8864d..3559c30 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -611,13 +611,11 @@ void radv_GetPhysicalDeviceMemoryProperties(
 	};
 }
 
-static VkResult
+static void
 radv_queue_init(struct radv_device *device, struct radv_queue *queue)
 {
 	queue->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
 	queue->device = device;
-
-	return VK_SUCCESS;
 }
 
 static void




More information about the mesa-commit mailing list