From afa811caa8178cf22c0a119a596f9d2f40225dc9 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 27 Feb 2013 18:27:56 +0100 Subject: [PATCH] CrushCompiler.cc: remove duplicate if/else branches Fix duplicate content of a if/else branch. Remove the complete if/else around the content. Signed-off-by: Danny Al-Gaaf --- src/crush/CrushCompiler.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/crush/CrushCompiler.cc b/src/crush/CrushCompiler.cc index 5a9eb441b2c11..c54a7b916e4e1 100644 --- a/src/crush/CrushCompiler.cc +++ b/src/crush/CrushCompiler.cc @@ -100,12 +100,9 @@ int CrushCompiler::decompile_bucket_impl(int i, ostream &out) print_item_name(out, item, crush); out << " weight "; print_fixedpoint(out, w); - if (dopos) { - if (alg == CRUSH_BUCKET_TREE) - out << " pos " << j; - else - out << " pos " << j; - } + if (dopos) + out << " pos " << j; + out << "\n"; } out << "}\n"; -- 2.39.5