]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_admin.cc: prevent useless value assignment
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 14:42:58 +0000 (15:42 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:26:22 +0000 (10:26 -0800)
commit8c1cb21598e603f39026f84acec84866cb4451df
treee8ebb977c2fc27395a69889af159a36385fb875f
parentc115bdb4951a0d1c54241145d411734f60247647
rgw/rgw_admin.cc: prevent useless value assignment

Fix issue found by cppcheck:
[src/rgw/rgw_admin.cc:710] -> [src/rgw/rgw_admin.cc:714]:
  (performance) Variable 'ret' is reassigned a value before
  the old one has been used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Deal with this by moving the declaration to where we define
the value for a couple variables.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/rgw/rgw_admin.cc