From: Bingyin Zhang Date: Mon, 8 Jan 2018 01:02:29 +0000 (+0800) Subject: rgw: drop useless type conversion X-Git-Tag: v13.0.2~617^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=95bb4e93e5e1b376e28ae98190055f2de936298a;p=ceph.git rgw: drop useless type conversion * variable 'max_buckets' is already 'uint64_t', so the type conversion is useless. Signed-off-by: Bingyin Zhang --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 8267a730e1de4..13d39e630b227 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -1872,7 +1872,7 @@ void RGWListBuckets::execute() RGWUserBuckets buckets; uint64_t read_count; if (limit >= 0) { - read_count = min(limit - total_count, (uint64_t)max_buckets); + read_count = min(limit - total_count, max_buckets); } else { read_count = max_buckets; }