[arrayfire] 201/284: Removing unnecessary returns from void functions

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.

commit 0638f3f0d99ac0297031ffb00006e2e72fc9d297
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Mon Jan 11 15:28:02 2016 -0500

    Removing unnecessary returns from void functions
---
 src/backend/MemoryManager.hpp | 2 +-
 src/backend/cpu/memory.cpp    | 2 +-
 src/backend/cuda/memory.cpp   | 2 +-
 src/backend/opencl/memory.cpp | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/backend/MemoryManager.hpp b/src/backend/MemoryManager.hpp
index cfcc60f..5de8e4d 100644
--- a/src/backend/MemoryManager.hpp
+++ b/src/backend/MemoryManager.hpp
@@ -84,7 +84,7 @@ public:
 
     virtual void nativeFree(void *ptr)
     {
-        return free((void *)ptr);
+        free((void *)ptr);
     }
 
     virtual ~MemoryManager()
diff --git a/src/backend/cpu/memory.cpp b/src/backend/cpu/memory.cpp
index 2687b30..4af3486 100644
--- a/src/backend/cpu/memory.cpp
+++ b/src/backend/cpu/memory.cpp
@@ -102,7 +102,7 @@ void memFree(T *ptr)
 template<typename T>
 void memFreeLocked(T *ptr, bool user_unlock)
 {
-    return getMemoryManager().unlock((void *)ptr, user_unlock);
+    getMemoryManager().unlock((void *)ptr, user_unlock);
 }
 
 template<typename T>
diff --git a/src/backend/cuda/memory.cpp b/src/backend/cuda/memory.cpp
index 43c37e0..a3e995f 100644
--- a/src/backend/cuda/memory.cpp
+++ b/src/backend/cuda/memory.cpp
@@ -158,7 +158,7 @@ void memFree(T *ptr)
 template<typename T>
 void memFreeLocked(T *ptr, bool user_unlock)
 {
-    return getMemoryManager().unlock((void *)ptr, user_unlock);
+    getMemoryManager().unlock((void *)ptr, user_unlock);
 }
 
 template<typename T>
diff --git a/src/backend/opencl/memory.cpp b/src/backend/opencl/memory.cpp
index 45b8e96..9e1344d 100644
--- a/src/backend/opencl/memory.cpp
+++ b/src/backend/opencl/memory.cpp
@@ -195,7 +195,7 @@ void bufferFree(cl::Buffer *buf)
 template<typename T>
 void memFreeLocked(T *ptr, bool user_unlock)
 {
-    return getMemoryManager().unlock((void *)ptr, user_unlock);
+    getMemoryManager().unlock((void *)ptr, user_unlock);
 }
 
 template<typename T>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list