[PATCH] Dead code in mtd/maps/pci.c
Changes
1 files changed · +0 −3
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/mtd/maps/pci.c | modified | +0 | −3 | View file |
drivers/mtd/maps/pci.c
View filediff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c
index 21822c2..d2ab1ba 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);