From 0b98b4fc87453f9e2997e231e51b28a36bd5ddf0 Mon Sep 17 00:00:00 2001 From: Karol Mroz Date: Mon, 11 Apr 2016 14:54:54 +0200 Subject: [PATCH] rgw-rados: return RGWSystemMetaObj init directly Signed-off-by: Karol Mroz --- src/rgw/rgw_rados.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 2bcc7b64ced11..1f2ce65b87df6 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1549,12 +1549,7 @@ int RGWZoneParams::init(CephContext *cct, RGWRados *store, bool setup_obj, bool name = cct->_conf->rgw_zone; } - int ret = RGWSystemMetaObj::init(cct, store, setup_obj, old_format); - if (ret < 0) { - return ret; - } - - return ret; + return RGWSystemMetaObj::init(cct, store, setup_obj, old_format); } int RGWZoneParams::read_default_id(string& default_id, bool old_format) -- 2.39.5