]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove needless `if` conditional branches test.
authorYan Jun <yan.jun8@zte.com.cn>
Fri, 17 Jun 2016 08:00:42 +0000 (16:00 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Fri, 17 Jun 2016 08:20:59 +0000 (16:20 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_bucket.cc

index f2250be99881acba74bf5ae93777d98704663f5b..b02a78284e74c7068001cf2100a1fff4a527c91e 100644 (file)
@@ -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,