summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/pci.c')
-rw-r--r--drivers/mtd/maps/pci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c
index 21822c2edbe4..d2ab1bae9c34 100644
--- a/drivers/mtd/maps/pci.c
+++ b/drivers/mtd/maps/pci.c
@@ -334,9 +334,6 @@ mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
return 0;
release:
- if (mtd)
- map_destroy(mtd);
-
if (map) {
map->exit(dev, map);
kfree(map);
OpenPOWER on IntegriCloud