[PATCH] Dead code in mtd/maps/pci.c
authorEric Sesterhenn <[email protected]>
Fri, 31 Mar 2006 10:29:50 +0000 (02:29 -0800)
committerLinus Torvalds <[email protected]>
Fri, 31 Mar 2006 20:18:49 +0000 (12:18 -0800)
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]>
drivers/mtd/maps/pci.c

index 21822c2edbe40126198990635473c902c06e7dc0..d2ab1bae9c346fbf2168ff59199222f226e6f2cb 100644 (file)
@@ -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);