aboutsummaryrefslogtreecommitdiff
path: root/loader/debug_report.c
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-10-14 14:18:56 -0600
committerMark Young <marky@lunarg.com>2016-10-14 15:27:28 -0600
commitbaf2f0b0eefbc83d20b36624e08c012158cf2d91 (patch)
tree22c1395a4134177ad08b2ffb276133a1b94e3f81 /loader/debug_report.c
parent12b92aaeac458f87a1bbe860c3e486893aa90aee (diff)
downloadusermoji-baf2f0b0eefbc83d20b36624e08c012158cf2d91.tar.xz
loader: Fix compilation warning in debug_report.c
Change-Id: I92e7f23217ef3897995514360c23849ef1cfadeb
Diffstat (limited to 'loader/debug_report.c')
-rw-r--r--loader/debug_report.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/loader/debug_report.c b/loader/debug_report.c
index 637bfd5a..4054d4ed 100644
--- a/loader/debug_report.c
+++ b/loader/debug_report.c
@@ -386,7 +386,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDebugReportCallback(
out:
// Roll back on errors
- if (res != NULL) {
+ if (VK_SUCCESS != res) {
storage_idx = 0;
for (icd = inst->icds; icd; icd = icd->next) {
if (NULL == icd->DestroyDebugReportCallbackEXT) {
@@ -419,12 +419,9 @@ out:
free(icd_info);
}
}
-
- return res;
}
-
- return VK_SUCCESS;
+ return res;
}
/*