Mesa (main): dzn: drop incorrect return statement

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 7 20:06:46 UTC 2022


Module: Mesa
Branch: main
Commit: 4ae6c34a5a0564666e04a68ae954cdbcccbe6992
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ae6c34a5a0564666e04a68ae954cdbcccbe6992

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu Apr  7 14:02:57 2022 +0200

dzn: drop incorrect return statement

We're returning nothing here. Let's not do that.

Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15790>

---

 src/microsoft/vulkan/dzn_descriptor_set.cpp | 4 ++--
 src/microsoft/vulkan/dzn_device.cpp         | 4 ++--
 src/microsoft/vulkan/dzn_pipeline_cache.cpp | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/microsoft/vulkan/dzn_descriptor_set.cpp b/src/microsoft/vulkan/dzn_descriptor_set.cpp
index 0b856571b90..a5fc4e60b94 100644
--- a/src/microsoft/vulkan/dzn_descriptor_set.cpp
+++ b/src/microsoft/vulkan/dzn_descriptor_set.cpp
@@ -1371,8 +1371,8 @@ dzn_DestroyDescriptorPool(VkDevice device,
                           VkDescriptorPool descriptorPool,
                           const VkAllocationCallbacks *pAllocator)
 {
-   return dzn_descriptor_pool_destroy(dzn_descriptor_pool_from_handle(descriptorPool),
-                                      pAllocator);
+   dzn_descriptor_pool_destroy(dzn_descriptor_pool_from_handle(descriptorPool),
+                               pAllocator);
 }
 
 VKAPI_ATTR VkResult VKAPI_CALL
diff --git a/src/microsoft/vulkan/dzn_device.cpp b/src/microsoft/vulkan/dzn_device.cpp
index a692990c6bd..313bd464d1c 100644
--- a/src/microsoft/vulkan/dzn_device.cpp
+++ b/src/microsoft/vulkan/dzn_device.cpp
@@ -2441,7 +2441,7 @@ dzn_DestroyEvent(VkDevice device,
                  VkEvent event,
                  const VkAllocationCallbacks *pAllocator)
 {
-   return dzn_event_destroy(dzn_event_from_handle(event), pAllocator);
+   dzn_event_destroy(dzn_event_from_handle(event), pAllocator);
 }
 
 VKAPI_ATTR VkResult VKAPI_CALL
@@ -2620,5 +2620,5 @@ dzn_DestroySampler(VkDevice device,
                    VkSampler sampler,
                    const VkAllocationCallbacks *pAllocator)
 {
-   return dzn_sampler_destroy(dzn_sampler_from_handle(sampler), pAllocator);
+   dzn_sampler_destroy(dzn_sampler_from_handle(sampler), pAllocator);
 }
diff --git a/src/microsoft/vulkan/dzn_pipeline_cache.cpp b/src/microsoft/vulkan/dzn_pipeline_cache.cpp
index 321ff840553..060cea6d1d2 100644
--- a/src/microsoft/vulkan/dzn_pipeline_cache.cpp
+++ b/src/microsoft/vulkan/dzn_pipeline_cache.cpp
@@ -73,8 +73,8 @@ dzn_DestroyPipelineCache(VkDevice device,
                          VkPipelineCache pipelineCache,
                          const VkAllocationCallbacks *pAllocator)
 {
-   return dzn_pipeline_cache_destroy(dzn_pipeline_cache_from_handle(pipelineCache),
-                                     pAllocator);
+   dzn_pipeline_cache_destroy(dzn_pipeline_cache_from_handle(pipelineCache),
+                              pAllocator);
 }
 
 VKAPI_ATTR VkResult VKAPI_CALL



More information about the mesa-commit mailing list