From: Danny Al-Gaaf Date: Tue, 24 Feb 2015 09:43:57 +0000 (+0100) Subject: erasure-code/shec/shec.cc: reduce scope of variables X-Git-Tag: suse_latest~18^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=609a07056008dc757348edfc36db93c4fff92a6c;p=ceph.git erasure-code/shec/shec.cc: reduce scope of variables Signed-off-by: Danny Al-Gaaf --- diff --git a/src/erasure-code/shec/shec.cc b/src/erasure-code/shec/shec.cc index 95225550c000..3b375b2b32cd 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.