[MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Oct 18 07:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6b8520296d67622dfa225436ef325f7dfd6ece8e
Commit:     6b8520296d67622dfa225436ef325f7dfd6ece8e
Parent:     5bf1723723487ddb0b9c9641b6559da96b27cc93
Author:     Manish Katiyar <mkatiyar at gmail.com>
AuthorDate: Tue Oct 14 23:43:29 2008 +0530
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Oct 18 12:39:17 2008 +0100

    [MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c
    
    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 <mkatiyar at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 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())



More information about the linux-mtd-cvs mailing list