diff --git a/src/rgw/rgw_sync_module_aws.cc b/src/rgw/rgw_sync_module_aws.cc index adf8d2db4bb676..8d55b43de30208 100644 --- a/src/rgw/rgw_sync_module_aws.cc +++ b/src/rgw/rgw_sync_module_aws.cc @@ -1015,9 +1015,6 @@ int RGWAWSSyncModule::create_instance(CephContext *cct, const JSONFormattable& c conf.bucket_suffix = config["bucket_suffix"]; - string access_key; - string secret; - string access_key = config["access_key"]; string secret = config["secret"];