From cccdce19011d78fcf3898e8f7385b3619f4a8a0a Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Mon, 30 Nov 2015 15:22:41 -0700 Subject: debug_report: make destroy have void return value --- loader/debug_report.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'loader/debug_report.c') diff --git a/loader/debug_report.c b/loader/debug_report.c index f6b3a31a..5ef00ebf 100644 --- a/loader/debug_report.c +++ b/loader/debug_report.c @@ -92,7 +92,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL debug_report_CreateDebugReportCallback( return result; } -static VKAPI_ATTR VkResult VKAPI_CALL debug_report_DestroyDebugReportCallback( +static VKAPI_ATTR void VKAPI_CALL debug_report_DestroyDebugReportCallback( VkInstance instance, VkDebugReportCallbackLUNARG callback, VkAllocationCallbacks *pAllocator) @@ -102,7 +102,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL debug_report_DestroyDebugReportCallback( VkLayerDbgFunctionNode *pTrav = inst->DbgFunctionHead; VkLayerDbgFunctionNode *pPrev = pTrav; - VkResult result = inst->disp->DestroyDebugReportCallbackLUNARG(instance, callback, pAllocator); + inst->disp->DestroyDebugReportCallbackLUNARG(instance, callback, pAllocator); while (pTrav) { if (pTrav->msgCallback == callback) { @@ -117,7 +117,6 @@ static VKAPI_ATTR VkResult VKAPI_CALL debug_report_DestroyDebugReportCallback( } loader_platform_thread_unlock_mutex(&loader_lock); - return result; } @@ -191,13 +190,12 @@ VKAPI_ATTR VkResult VKAPI_CALL loader_CreateDebugReportCallback( * This is the instance chain terminator function * for DestroyDebugReportCallback */ -VKAPI_ATTR VkResult VKAPI_CALL loader_DestroyDebugReportCallback(VkInstance instance, +VKAPI_ATTR void loader_DestroyDebugReportCallback(VkInstance instance, VkDebugReportCallbackLUNARG callback, const VkAllocationCallbacks *pAllocator) { uint32_t storage_idx; VkDebugReportCallbackLUNARG *icd_info; const struct loader_icd *icd; - VkResult res = VK_SUCCESS; struct loader_instance *inst; for (inst = loader.instances; inst; inst = inst->next) { @@ -216,7 +214,6 @@ VKAPI_ATTR VkResult VKAPI_CALL loader_DestroyDebugReportCallback(VkInstance inst } storage_idx++; } - return res; } bool debug_report_instance_gpa( -- cgit v1.2.3