From 9d874484b22e8e6b63f3f49a8579ef2dc62bfbb0 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 22 Oct 2014 10:26:52 +0200 Subject: [PATCH] os/HashIndex.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- src/os/HashIndex.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/HashIndex.cc b/src/os/HashIndex.cc index ca0b591a9162e..a4d1d6c94d844 100644 --- a/src/os/HashIndex.cc +++ b/src/os/HashIndex.cc @@ -476,10 +476,9 @@ int HashIndex::recursive_create_path(vector& 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); -- 2.39.5