Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Manish Katiyar and committed by
David Woodhouse
6b852029 5bf17237

+2
+2
drivers/mtd/nand/cs553x_nand.c
··· 289 289 int i; 290 290 uint64_t val; 291 291 292 + #ifdef CONFIG_MTD_PARTITIONS 292 293 int mtd_parts_nb = 0; 293 294 struct mtd_partition *mtd_parts = NULL; 295 + #endif 294 296 295 297 /* If the CPU isn't a Geode GX or LX, abort */ 296 298 if (!is_geode())