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:
Danny Al-Gaaf 2014-05-12 02:07:10 +02:00
parent b1196795c2
commit a4455299d9

View File

@ -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");