From 95bb4e93e5e1b376e28ae98190055f2de936298a Mon Sep 17 00:00:00 2001 From: Bingyin Zhang Date: Mon, 8 Jan 2018 09:02:29 +0800 Subject: [PATCH] rgw: drop useless type conversion * variable 'max_buckets' is already 'uint64_t', so the type conversion is useless. Signed-off-by: Bingyin Zhang --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5