From c0bcdc37028d2582ef1a475ec957db509e4c2786 Mon Sep 17 00:00:00 2001 From: Xing Lin Date: Sat, 2 Nov 2013 19:24:22 -0600 Subject: [PATCH] osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix() When bitmatrix is NULL, this function returns NULL. Signed-off-by: Xing Lin Reviewed-by: Sage Weil --- src/osd/ErasureCodePluginJerasure/jerasure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ErasureCodePluginJerasure/jerasure.c b/src/osd/ErasureCodePluginJerasure/jerasure.c index 9efae02e5fb..d5752a8ee51 100755 --- a/src/osd/ErasureCodePluginJerasure/jerasure.c +++ b/src/osd/ErasureCodePluginJerasure/jerasure.c @@ -276,7 +276,7 @@ int *jerasure_matrix_to_bitmatrix(int k, int m, int w, int *matrix) int rowelts, rowindex, colindex, elt, i, j, l, x; bitmatrix = talloc(int, k*m*w*w); - if (matrix == NULL) { return NULL; } + if (bitmatrix == NULL) { return NULL; } rowelts = k * w; rowindex = 0; -- 2.47.3