From patchwork Thu Jul 30 10:25:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stoyan Gaydarov X-Patchwork-Id: 30380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 99501B7088 for ; Thu, 30 Jul 2009 20:28:59 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MWSpM-0008Gd-K8; Thu, 30 Jul 2009 10:25:36 +0000 Received: from dscas1.ad.uiuc.edu ([128.174.68.119]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1MWSpE-00086v-P2 for linux-mtd@lists.infradead.org; Thu, 30 Jul 2009 10:25:33 +0000 Received: from localhost.localdomain (24.14.10.32) by smtp-secure.illinois.edu (128.174.68.18) with Microsoft SMTP Server (TLS) id 8.1.358.0; Thu, 30 Jul 2009 05:25:19 -0500 From: Stoyan Gaydarov To: linux-kernel@vger.kernel.org Subject: [PATCH 2/4] [mtd] fixed faulty check Date: Thu, 30 Jul 2009 05:25:06 -0500 Message-ID: <1248949506-20827-1-git-send-email-sgayda2@uiuc.edu> X-Mailer: git-send-email 1.6.3.3 MIME-Version: 1.0 X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [128.174.68.119 listed in list.dnswl.org] Cc: Stoyan Gaydarov , David.Woodhouse@intel.com, bigeasy@linutronix.de, kay.sievers@vrfy.org, linux-mtd@lists.infradead.org, sr@denx.de, gregkh@suse.de X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patche fixes a spelling error that has resulted from copy and pasting. The location of the error was found using a semantic patch but the semantic patch was not trying to find these errors. After looking things over it seemed logical that this change was needed. Please review it and then include the patch if it is in fact the correct change. Signed-off-by: Stoyan Gaydarov --- drivers/mtd/maps/physmap_of.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 39d357b..2cc0b0d 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -215,7 +215,7 @@ static int __devinit of_flash_probe(struct of_device *dev, goto err_out; mtd_list = kzalloc(sizeof(struct mtd_info) * count, GFP_KERNEL); - if (!info) + if (!mtd_list) goto err_out; dev_set_drvdata(&dev->dev, info);