From: Yan Jun Date: Wed, 18 May 2016 04:20:23 +0000 (+0800) Subject: rgw/rgw_rados: remove uneccessary transitional variables "r" X-Git-Tag: v11.0.1~107^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a38c7809de3f43d3e3b3c6a65a104f3eaf5d41ae;p=ceph.git rgw/rgw_rados: remove uneccessary transitional variables "r" Signed-off-by: Yan Jun --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 5076d18d282a..8456e919edc5 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -11016,8 +11016,7 @@ int RGWRados::cls_rgw_init_index(librados::IoCtx& index_ctx, librados::ObjectWri { bufferlist in; cls_rgw_bucket_init(op); - int r = index_ctx.operate(oid, &op); - return r; + return index_ctx.operate(oid, &op); } int RGWRados::cls_obj_prepare_op(BucketShard& bs, RGWModifyOp op, string& tag, @@ -11026,8 +11025,7 @@ int RGWRados::cls_obj_prepare_op(BucketShard& bs, RGWModifyOp op, string& tag, ObjectWriteOperation o; cls_rgw_obj_key key(obj.get_index_key_name(), obj.get_instance()); cls_rgw_bucket_prepare_op(o, op, tag, key, obj.get_loc(), get_zone().log_data, bilog_flags); - int r = bs.index_ctx.operate(bs.bucket_obj, &o); - return r; + return bs.index_ctx.operate(bs.bucket_obj, &o); } int RGWRados::cls_obj_complete_op(BucketShard& bs, RGWModifyOp op, string& tag,