Skip to content

Commit

Permalink
[MTD] [NAND] fix 2 "unused variable" warnings in cafe_nand.c
Browse files Browse the repository at this point in the history
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Toralf Förster authored and David Woodhouse committed Jun 4, 2008
1 parent 1b0b30a commit 437d0d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/mtd/nand/cafe_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,12 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
{
struct mtd_info *mtd;
struct cafe_priv *cafe;
struct mtd_partition *parts;
uint32_t ctrl;
int nr_parts;
int err = 0;
#ifdef CONFIG_MTD_PARTITIONS
struct mtd_partition *parts;
int nr_parts;
#endif

/* Very old versions shared the same PCI ident for all three
functions on the chip. Verify the class too... */
Expand Down

0 comments on commit 437d0d2

Please sign in to comment.