From 34a29866a7e5f5f3f7023733bf4f323fc9995d86 Mon Sep 17 00:00:00 2001 From: Yan Jun Date: Wed, 29 Jun 2016 16:08:35 +0800 Subject: [PATCH] rgw: remove uneccessary temporary variable 'r' Signed-off-by: Yan Jun --- src/rgw/rgw_rados.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index f9b6b7ae3b4f..596362539c2e 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() -- 2.47.3