From: Yan Jun Date: Wed, 29 Jun 2016 08:08:35 +0000 (+0800) Subject: rgw: remove uneccessary temporary variable 'r' X-Git-Tag: ses5-milestone5~546^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=34a29866a7e5f5f3f7023733bf4f323fc9995d86;p=ceph.git rgw: remove uneccessary temporary variable 'r' Signed-off-by: Yan Jun --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index f9b6b7ae3b4..596362539c2 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -2226,11 +2226,7 @@ int RGWPutObjProcessor_Aio::handle_obj_data(rgw_obj& obj, bufferlist& bl, off_t // For the first call pass -1 as the offset to // do a write_full. - int r = store->aio_put_obj_data(NULL, obj, - bl, - ((ofs != 0) ? ofs : -1), - exclusive, phandle); - return r; + return store->aio_put_obj_data(NULL, obj, bl, ((ofs != 0) ? ofs : -1), exclusive, phandle); } struct put_obj_aio_info RGWPutObjProcessor_Aio::pop_pending()