From: Danny Al-Gaaf Date: Mon, 22 Feb 2016 13:54:36 +0000 (+0100) Subject: test/librgw_file.cc: remove not needed variables X-Git-Tag: v11.1.0~327^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dca2082c9faa6e317ddc1aef8c907dc1f4ed475e;p=ceph.git test/librgw_file.cc: remove not needed variables Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/librgw_file.cc b/src/test/librgw_file.cc index 5ed0cb4077f3..c623b56ec04c 100644 --- a/src/test/librgw_file.cc +++ b/src/test/librgw_file.cc @@ -106,14 +106,12 @@ TEST(LibRGW, LOOKUP_BUCKETS) { if (! fs) return; - int ret = 0; for (auto& fid_row : bucket_matrix) { auto& fid = get<0>(fid_row); // auto& obj_vector = get<1>(fid_row); struct rgw_file_handle *rgw_fh = nullptr; - ret = rgw_lookup(fs, fs->root_fh, get<0>(fid).c_str(), &rgw_fh, - 0 /* flags */); - ASSERT_EQ(ret, 0); + ASSERT_EQ(0, rgw_lookup(fs, fs->root_fh, get<0>(fid).c_str(), &rgw_fh, + 0 /* flags */)); get<2>(fid) = rgw_fh; ASSERT_NE(get<2>(fid), nullptr); } @@ -126,14 +124,12 @@ TEST(LibRGW, GETATTR_BUCKETS) { if (! fs) return; - int ret = 0; struct stat st; for (auto& fid_row : bucket_matrix) { auto& fid = get<0>(fid_row); struct rgw_file_handle *rgw_fh = get<2>(fid); - ret = rgw_getattr(fs, rgw_fh, &st, RGW_GETATTR_FLAG_NONE); - ASSERT_EQ(ret, 0); + ASSERT_EQ(0, rgw_getattr(fs, rgw_fh, &st, RGW_GETATTR_FLAG_NONE)); } } }