From: Danny Al-Gaaf Date: Wed, 15 May 2013 12:05:40 +0000 (+0200) Subject: os/HashIndex.cc: reduce scope of a local variable X-Git-Tag: v0.64~119^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8254072b9188b4fd36c7e24154f0244792b1f84d;p=ceph.git os/HashIndex.cc: reduce scope of a local variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/HashIndex.cc b/src/os/HashIndex.cc index d5f2d74080c5..56b2c017d038 100644 --- a/src/os/HashIndex.cc +++ b/src/os/HashIndex.cc @@ -298,9 +298,9 @@ int HashIndex::_lookup(const hobject_t &hoid, vector path_comp; get_path_components(hoid, &path_comp); vector::iterator next = path_comp.begin(); - int r, exists; + int exists; while (1) { - r = path_exists(*path, &exists); + int r = path_exists(*path, &exists); if (r < 0) return r; if (!exists) {