Do not return in functions with void return types.
authorOssama Othman <ossama.othman@intel.com>
Fri, 4 Oct 2013 05:38:24 +0000 (22:38 -0700)
committerOssama Othman <ossama.othman@intel.com>
Fri, 4 Oct 2013 16:31:11 +0000 (09:31 -0700)
Change-Id: Iaf44b84358eff305b62d0c0894e31d9e8a555837
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
include/settingsd/reverse_lock.hpp

index 957e3e0..7de5310 100644 (file)
@@ -46,10 +46,10 @@ namespace ivi
       constexpr reverse_lock(T & m) : mutex_(m) {}
 
       /// Unlock the underlying mutex.
-      void lock() { return mutex_.unlock(); }
+      void lock() { mutex_.unlock(); }
 
       /// Lock the underlying mutex.
-      void unlock()  { return mutex_.lock(); }
+      void unlock()  { mutex_.lock(); }
 
     private: