Skip to contentSkip to conversation

Dead code in mtd/maps/pci.c

PATCH New Eric Sesterhenn 1 participant 1 message Mar 7, 2006 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Dead code in mtd/maps/pci.c

hi,

this fixed 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

drivers/mtd/maps/pci.c renamed from drivers/mtd/maps/pci.c.orig +0 -3
@@ -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);