]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common: logically dead code inside shunique_lock.h
authoramitkuma <amitkuma@redhat.com>
Tue, 29 Aug 2017 15:46:50 +0000 (21:16 +0530)
committeramitkuma <amitkuma@redhat.com>
Tue, 29 Aug 2017 15:46:50 +0000 (21:16 +0530)
Fixes the coverity issue:

** 1352097 Structurally dead code

CID 1352097 (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: return ceph::shunique_lock<...

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/common/shunique_lock.h

index b7ad08cc10af649f1100fc6460eb89f822db3f61..0064b4aab04c2464774a426cfe9ae87b62513bc8 100644 (file)
@@ -323,7 +323,6 @@ public:
     }
     throw std::system_error((int)std::errc::operation_not_permitted,
                            std::generic_category());
-    return unique_lock_type();
   }
 
   shared_lock_type release_to_shared() {