From: Xing Lin Date: Sun, 3 Nov 2013 01:13:42 +0000 (-0600) Subject: osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix() X-Git-Tag: v0.73~25^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=89d5396cabbb0f0ccc51e48d57422033bc50dec3;p=ceph.git osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix() When bitmatrix is NULL, this function returns NULL. Signed-off-by: Xing Lin --- diff --git a/src/osd/ErasureCodePluginJerasure/jerasure.c b/src/osd/ErasureCodePluginJerasure/jerasure.c index 9efae02e5fb2..d5752a8ee517 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;