]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove uneccessary temporary variable 'ret' 10057/head
authorYan Jun <yan.jun8@zte.com.cn>
Thu, 30 Jun 2016 06:01:29 +0000 (14:01 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Thu, 30 Jun 2016 06:01:29 +0000 (14:01 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_rados.cc

index fa38e08222729910d8d26f24888bab719fbc1af5..25e540b40e43752feceb6920f564de2a87658d02 100644 (file)
@@ -7367,9 +7367,7 @@ int RGWRados::Object::complete_atomic_modification()
   store->update_gc_chain(obj, state->manifest, &chain);
 
   string tag = state->obj_tag.to_str();
-  int ret = store->gc->send_chain(chain, tag, false);  // do it async
-
-  return ret;
+  return store->gc->send_chain(chain, tag, false);  // do it async
 }
 
 void RGWRados::update_gc_chain(rgw_obj& head_obj, RGWObjManifest& manifest, cls_rgw_obj_chain *chain)