Skip to content

Commit

Permalink
[MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manish Katiyar authored and David Woodhouse committed Oct 18, 2008
1 parent 5bf1723 commit 6b85202
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mtd/nand/cs553x_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 6b85202

Please sign in to comment.