From 609a07056008dc757348edfc36db93c4fff92a6c Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 24 Feb 2015 10:43:57 +0100 Subject: [PATCH] erasure-code/shec/shec.cc: reduce scope of variables Signed-off-by: Danny Al-Gaaf --- src/erasure-code/shec/shec.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/erasure-code/shec/shec.cc b/src/erasure-code/shec/shec.cc index 95225550c0009..3b375b2b32cd6 100644 --- a/src/erasure-code/shec/shec.cc +++ b/src/erasure-code/shec/shec.cc @@ -84,14 +84,13 @@ int *shec_reedsolomon_coding_matrix(int k, int m, int c, int w, int is_single) { int *matrix; int rr, cc, start, end; - int m1, m2, c1, c2, c1_best = -1, m1_best = -1; - double min_r_e1; + int m1, m2, c1, c2; if (w != 8 && w != 16 && w != 32) return NULL; if (!is_single){ - - min_r_e1 = 100.0; + int c1_best = -1, m1_best = -1; + double min_r_e1 = 100.0; // create all multiple shec pattern and choose best. -- 2.39.5