From patchwork Sun Nov 3 01:24:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xing Lin X-Patchwork-Id: 3131911 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 34E97BEEB2 for ; Sun, 3 Nov 2013 01:24:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F0AA2034B for ; Sun, 3 Nov 2013 01:24:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C7A120320 for ; Sun, 3 Nov 2013 01:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751576Ab3KCBY0 (ORCPT ); Sat, 2 Nov 2013 21:24:26 -0400 Received: from mail-svr1.cs.utah.edu ([155.98.64.241]:49890 "EHLO mail-svr1.cs.utah.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751225Ab3KCBY0 (ORCPT ); Sat, 2 Nov 2013 21:24:26 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 4C69E6500E7; Sat, 2 Nov 2013 19:24:25 -0600 (MDT) X-Virus-Scanned: amavisd-new at cs.utah.edu Received: from mail-svr1.cs.utah.edu ([127.0.0.1]) by localhost (mail-svr1.cs.utah.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8JL2-Zx0RyZK; Sat, 2 Nov 2013 19:24:25 -0600 (MDT) Received: from Xings-MacBook-Pro.local (155-97-235-42.usahousing.utah.edu [155.97.235.42]) by smtps.cs.utah.edu (Postfix) with ESMTPSA id 20E2A6500DD; Sat, 2 Nov 2013 19:24:25 -0600 (MDT) Received: by Xings-MacBook-Pro.local (Postfix, from userid 501) id B3D9DB7C76E; Sat, 2 Nov 2013 19:24:23 -0600 (MDT) From: Xing Lin To: ceph-devel@vger.kernel.org Cc: xinglin@cs.utah.edu, sage@inktank.com Subject: [PATCH] osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix() Date: Sat, 2 Nov 2013 19:24:22 -0600 Message-Id: <1383441862-3623-1-git-send-email-xinglin@cs.utah.edu> X-Mailer: git-send-email 1.8.3.4 (Apple Git-47) Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When bitmatrix is NULL, this function returns NULL. Signed-off-by: Xing Lin --- 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 9efae02..d5752a8 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;