Преглед изворни кода

[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@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Manish Katiyar пре 16 година
родитељ
комит
6b8520296d
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      drivers/mtd/nand/cs553x_nand.c

+ 2 - 0
drivers/mtd/nand/cs553x_nand.c

@@ -289,8 +289,10 @@ static int __init cs553x_init(void)
 	int i;
 	int i;
 	uint64_t val;
 	uint64_t val;
 
 
+#ifdef CONFIG_MTD_PARTITIONS
 	int mtd_parts_nb = 0;
 	int mtd_parts_nb = 0;
 	struct mtd_partition *mtd_parts = NULL;
 	struct mtd_partition *mtd_parts = NULL;
+#endif
 
 
 	/* If the CPU isn't a Geode GX or LX, abort */
 	/* If the CPU isn't a Geode GX or LX, abort */
 	if (!is_geode())
 	if (!is_geode())