From c943805438db4b90a43fd908b881a81f02cd50f6 Mon Sep 17 00:00:00 2001 From: amitkuma Date: Tue, 29 Aug 2017 21:16:50 +0530 Subject: [PATCH] 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 --- src/common/shunique_lock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/shunique_lock.h b/src/common/shunique_lock.h index b7ad08cc10af6..0064b4aab04c2 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() { -- 2.39.5