]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_user.cc: remove dead assignment in generate_key()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 12 May 2014 00:07:10 +0000 (02:07 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 12 May 2014 00:07:10 +0000 (02:07 +0200)
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>
src/rgw/rgw_user.cc

index 41954b042fc6f9ebc3e538f305722066ec2025c8..4b181f88a9d66b0868432f3720c4170594b8f4b4 100644 (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");