From: amitkuma Date: Tue, 29 Aug 2017 15:46:50 +0000 (+0530) Subject: common: logically dead code inside shunique_lock.h X-Git-Tag: v13.0.1~1136^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17341%2Fhead;p=ceph.git common: logically dead code inside shunique_lock.h 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 --- diff --git a/src/common/shunique_lock.h b/src/common/shunique_lock.h index b7ad08cc10af..0064b4aab04c 100644 --- a/src/common/shunique_lock.h +++ b/src/common/shunique_lock.h @@ -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() {