From: Danny Al-Gaaf Date: Mon, 12 May 2014 00:07:10 +0000 (+0200) Subject: rgw_user.cc: remove dead assignment in generate_key() X-Git-Tag: v0.81~27^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4455299d95393d5b35722722eec754d8dd6fff9;p=ceph.git 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 --- diff --git a/src/rgw/rgw_user.cc b/src/rgw/rgw_user.cc index 41954b042fc6..4b181f88a9d6 100644 --- a/src/rgw/rgw_user.cc +++ b/src/rgw/rgw_user.cc @@ -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");