projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2dce0
)
[PATCH] Dead code in mtd/maps/pci.c
author
Eric Sesterhenn
<
[email protected]
>
Fri, 31 Mar 2006 10:29:50 +0000
(
02:29
-0800)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/pci.c
b/drivers/mtd/maps/pci.c
index 21822c2edbe40126198990635473c902c06e7dc0..d2ab1bae9c346fbf2168ff59199222f226e6f2cb 100644
(file)
--- 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);