Skip to content

Commit

Permalink
rgw_user.cc: remove dead assignment in generate_key()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dalgaaf committed May 12, 2014
1 parent b119679 commit a445529
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rgw/rgw_user.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a445529

Please sign in to comment.