]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: remove uneccessary temporary variable 'r'
authorYan Jun <yan.jun8@zte.com.cn>
Wed, 29 Jun 2016 08:08:35 +0000 (16:08 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Wed, 29 Jun 2016 08:08:35 +0000 (16:08 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_rados.cc

index f9b6b7ae3b4f9556236ed9e085b691af9ebbe55a..596362539c2ecda312833fa1db666212f0b16ecb 100644 (file)
@@ -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()