Re: [PATCH] MTD: fix 2 "unused variables" warnings in drivers/mtd/nand/cafe_nand.c
- From: Sebastian Siewior <lkml@xxxxxxxxxxxxxxxx>
- Date: Mon, 26 May 2008 13:58:26 +0200
* Toralf F?rster | 2008-05-26 13:47:51 [+0200]:
--- a/drivers/mtd/nand/cafe_nand.cYou can't declare variables in the middle of the code, can you?
+++ b/drivers/mtd/nand/cafe_nand.c
@@ -626,9 +626,7 @@ 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;
/* Very old versions shared the same PCI ident for all three
@@ -800,6 +798,9 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
add_mtd_device(mtd);
#ifdef CONFIG_MTD_PARTITIONS
+ struct mtd_partition *parts;
+ int nr_parts;
+
nr_parts = parse_mtd_partitions(mtd, part_probes, &parts, 0);
if (nr_parts > 0) {
cafe->parts = parts;
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH] MTD: fix 2 "unused variables" warnings in drivers/mtd/nand/cafe_nand.c
- From: Toralf Förster
- [PATCH] MTD: fix 2 "unused variables" warnings in drivers/mtd/nand/cafe_nand.c
- Prev by Date: [bug] stuck localhost TCP connections, v2.6.26-rc3+
- Next by Date: Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the mmc_spi driver
- Previous by thread: [PATCH] MTD: fix 2 "unused variables" warnings in drivers/mtd/nand/cafe_nand.c
- Next by thread: [PATCH 1/1] Char: vt, make sysfs operations atomic
- Index(es):
Relevant Pages
|