]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/HashIndex.cc: reduce scope of variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 Oct 2014 08:26:52 +0000 (10:26 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 26 Oct 2014 17:10:13 +0000 (18:10 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/HashIndex.cc

index ca0b591a9162edd9548351e212328c3f33285177..a4d1d6c94d8442df7c178812d450e0c8f8243f0a 100644 (file)
@@ -476,10 +476,9 @@ int HashIndex::recursive_create_path(vector<string>& path, int level)
 {
   if (level == 0)
     return 0;
-  int ret;
   for (int i = 0; i < 16; ++i) {
     path.push_back(to_hex(i));
-    ret = create_path(path);
+    int ret = create_path(path);
     if (ret < 0 && ret != -EEXIST)
       return ret;
     ret = recursive_create_path(path, level - 1);