]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-rados: return RGWSystemMetaObj init directly 8534/head
authorKarol Mroz <kmroz@suse.com>
Mon, 11 Apr 2016 12:54:54 +0000 (14:54 +0200)
committerKarol Mroz <kmroz@suse.com>
Mon, 11 Apr 2016 12:54:54 +0000 (14:54 +0200)
Signed-off-by: Karol Mroz <kmroz@suse.com>
src/rgw/rgw_rados.cc

index 2bcc7b64ced1197fcc2d3ba54f5e3dfcaa4fda59..1f2ce65b87df6676b237b0a571f311e79c70f023 100644 (file)
@@ -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)