]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: There is no point in const return values
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 8 May 2018 23:54:50 +0000 (19:54 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 17:26:29 +0000 (13:26 -0400)
Pointer-to-const or reference-to-const yes. Const value, no.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_op.cc

index a28d40735360cebf4f0be8bd505da58fce758f36..e60dd7d66f85136d6a77df2ed6cad08c338073fc 100644 (file)
@@ -6549,7 +6549,7 @@ int RGWBulkUploadOp::handle_file(const boost::string_ref path,
   RGWPutObjDataProcessor *filter = nullptr;
   boost::optional<RGWPutObj_Compress> compressor;
 
-  if (size > static_cast<const size_t>(s->cct->_conf->rgw_max_put_size)) {
+  if (size > static_cast<size_t>(s->cct->_conf->rgw_max_put_size)) {
     op_ret = -ERR_TOO_LARGE;
     return op_ret;
   }