From: amitkuma Date: Wed, 30 Aug 2017 17:59:07 +0000 (+0530) Subject: rgw: unreachable return in RGWRados::trim_bi_log_entries X-Git-Tag: v13.0.2~688^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=76c99633fdb2ffed497fd0523f99591c382b38ae;p=ceph.git rgw: unreachable return in RGWRados::trim_bi_log_entries Fixes the coverity issue: ** 1412618 Structurally dead code CID 1412618 (#1 of 1): Structurally dead code (UNREACHABLE) unreachable: This code cannot be reached: return r; Signed-off-by: Amit Kumar --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7d6732306bcc..162dcce89016 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -12457,8 +12457,6 @@ int RGWRados::trim_bi_log_entries(RGWBucketInfo& bucket_info, int shard_id, stri return CLSRGWIssueBILogTrim(index_ctx, start_marker_mgr, end_marker_mgr, bucket_objs, cct->_conf->rgw_bucket_index_max_aio)(); - - return r; } int RGWRados::resync_bi_log_entries(RGWBucketInfo& bucket_info, int shard_id)