From 5eec1398e52496a89f52777c6b94492d39bc92d3 Mon Sep 17 00:00:00 2001 From: Yan Jun Date: Fri, 17 Jun 2016 16:00:42 +0800 Subject: [PATCH] rgw: remove needless `if` conditional branches test. Signed-off-by: Yan Jun --- src/rgw/rgw_bucket.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index f2250be99881a..b02a78284e74c 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -276,11 +276,7 @@ int rgw_unlink_bucket(RGWRados *store, const rgw_user& user_id, const string& te } ep.linked = false; - ret = store->put_bucket_entrypoint_info(tenant_name, bucket_name, ep, false, ot, real_time(), &attrs); - if (ret < 0) - return ret; - - return ret; + return store->put_bucket_entrypoint_info(tenant_name, bucket_name, ep, false, ot, real_time(), &attrs); } int rgw_bucket_store_info(RGWRados *store, const string& bucket_name, bufferlist& bl, bool exclusive, -- 2.39.5