projects/linux·commit edcbce21

[PATCH] Dead code in mtd/maps/pci.c

edcbce21 · Eric Sesterhenn <[email protected]> · 2006-03-31 02:29:50 -08:00

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 <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Acked-by: David Woodhouse <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
edcbce2150fec1f6e6670e14eb65098eebfacae8
Parents
2d2dce0e

Changes

1 files changed · +0 −3

FileStatusAddDelContent
drivers/mtd/maps/pci.cmodified+0−3View file

drivers/mtd/maps/pci.c

View file
diff --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);