]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: unreachable return in RGWRados::trim_bi_log_entries 17367/head
authoramitkuma <amitkuma@redhat.com>
Wed, 30 Aug 2017 17:59:07 +0000 (23:29 +0530)
committeramitkuma <amitkuma@redhat.com>
Wed, 30 Aug 2017 17:59:07 +0000 (23:29 +0530)
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 <amitkuma@redhat.com>
src/rgw/rgw_rados.cc

index 7d6732306bcc72cf2973a4e4568917ed3b992220..162dcce890164fb57fca6092d982bbc743e6bd0c 100644 (file)
@@ -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)