mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
rgw_user.cc: remove dead assignment in generate_key()
Fix for: [src/rgw/rgw_user.cc:778]: (style) Variable 'subuser' is assigned a value that is never used. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
b1196795c2
commit
a4455299d9
@ -773,7 +773,6 @@ int RGWAccessKeyPool::generate_key(RGWUserAdminOpState& op_state, std::string *e
|
||||
int key_type = op_state.get_key_type();
|
||||
bool gen_access = op_state.will_gen_access();
|
||||
bool gen_secret = op_state.will_gen_secret();
|
||||
std::string subuser = op_state.get_subuser();
|
||||
|
||||
if (!keys_allowed) {
|
||||
set_err_msg(err_msg, "access keys not allowed for this user");
|
||||
|
Loading…
Reference in New Issue
Block a user