Skip to content

Commit

Permalink
[PATCH] Dead code in mtd/maps/pci.c
Browse files Browse the repository at this point in the history
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 <snakebyte@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Eric Sesterhenn authored and Linus Torvalds committed Mar 31, 2006
1 parent 2d2dce0 commit edcbce2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mtd/maps/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edcbce2

Please sign in to comment.