From patchwork Tue Oct 14 18:13:29 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Katiyar X-Patchwork-Id: 4489 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@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 ozlabs.org (Postfix) with ESMTPS id 54766DDF7A for ; Wed, 15 Oct 2008 05:15:55 +1100 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KpoOi-0000Mi-EY; Tue, 14 Oct 2008 18:13:32 +0000 Received: from ti-out-0910.google.com ([209.85.142.188]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KpoOh-0000Fn-0r for linux-mtd@lists.infradead.org; Tue, 14 Oct 2008 18:13:31 +0000 Received: by ti-out-0910.google.com with SMTP id a21so1386575tia.2 for ; Tue, 14 Oct 2008 11:13:29 -0700 (PDT) Received: by 10.110.105.10 with SMTP id d10mr7126561tic.18.1224008009206; Tue, 14 Oct 2008 11:13:29 -0700 (PDT) Received: by 10.110.39.8 with HTTP; Tue, 14 Oct 2008 11:13:29 -0700 (PDT) Message-ID: Date: Tue, 14 Oct 2008 23:43:29 +0530 From: "Manish Katiyar" To: dwmw2@infradead.org, linux-mtd@lists.infradead.org Subject: [PATCH] mtd: Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c MIME-Version: 1.0 Content-Disposition: inline X-Spam-Score: 0.0 (/) Cc: mkatiyar@gmail.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 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 Below patch fixes the following compilation warnings. drivers/mtd/nand/cs553x_nand.c:293: warning: unused variable 'mtd_parts' drivers/mtd/nand/cs553x_nand.c:292: warning: unused variable 'mtd_parts_nb' Signed-off-by: Manish Katiyar --- drivers/mtd/nand/cs553x_nand.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mtd/nand/cs553x_nand.c index 3370a80..9f1b451 100644 --- a/drivers/mtd/nand/cs553x_nand.c +++ b/drivers/mtd/nand/cs553x_nand.c @@ -289,8 +289,10 @@ static int __init cs553x_init(void) int i; uint64_t val; +#ifdef CONFIG_MTD_PARTITIONS int mtd_parts_nb = 0; struct mtd_partition *mtd_parts = NULL; +#endif /* If the CPU isn't a Geode GX or LX, abort */ if (!is_geode())