diff options
author | Yan Jun <yan.jun8@zte.com.cn> | 2016-06-28 10:39:21 +0200 |
---|---|---|
committer | Yan Jun <yan.jun8@zte.com.cn> | 2016-06-28 10:39:56 +0200 |
commit | 7cd3cd38e5a31d0e125a3a35bd87c2f1034ec271 (patch) | |
tree | 3ec21fcb24fa80349795688eeb838693de2e2341 /src | |
parent | rgw: fix potential memory leaks in RGWPutCORS_ObjStore_S3::get_params (diff) | |
download | ceph-7cd3cd38e5a31d0e125a3a35bd87c2f1034ec271.tar.xz ceph-7cd3cd38e5a31d0e125a3a35bd87c2f1034ec271.zip |
rgw: return from init_complete directly
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
Diffstat (limited to 'src')
-rw-r--r-- | src/rgw/rgw_rados.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 078fe9cd84c..8bbeda14c11 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3803,9 +3803,7 @@ int RGWRados::initialize() if (ret < 0) return ret; - ret = init_complete(); - - return ret; + return init_complete(); } void RGWRados::finalize_watch() |