From: Eric Sesterhenn This fixes coverity bug #12. The first two gotos in the function still have the initial value for mtd set. And the third goto just triggers for !mtd Signed-off-by: Eric Sesterhenn Cc: Thomas Gleixner Cc: David Woodhouse Signed-off-by: Andrew Morton --- drivers/mtd/maps/pci.c | 3 --- 1 files changed, 3 deletions(-) diff -puN drivers/mtd/maps/pci.c~dead-code-in-mtd-maps-pcic drivers/mtd/maps/pci.c --- 25/drivers/mtd/maps/pci.c~dead-code-in-mtd-maps-pcic Thu Mar 9 16:17:12 2006 +++ 25-akpm/drivers/mtd/maps/pci.c Thu Mar 9 16:17:12 2006 @@ -334,9 +334,6 @@ mtd_pci_probe(struct pci_dev *dev, const return 0; release: - if (mtd) - map_destroy(mtd); - if (map) { map->exit(dev, map); kfree(map); _