mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 12:20:52 +07:00
[PATCH] Dead code in mtd/maps/pci.c
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>
This commit is contained in:
parent
2d2dce0eb6
commit
edcbce2150
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user