projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] kfree cleanup: drivers/mtd
[linux-2.6-block.git]
/
drivers
/
mtd
/
maps
/
ichxrom.c
diff --git
a/drivers/mtd/maps/ichxrom.c
b/drivers/mtd/maps/ichxrom.c
index e505207cd4892918b27c59a3ccc2f00afc0c3c59..c5e2111ba146df5535e0b90f451cc5c55d99ac63 100644
(file)
--- a/
drivers/mtd/maps/ichxrom.c
+++ b/
drivers/mtd/maps/ichxrom.c
@@
-306,9
+306,8
@@
static int __devinit ichxrom_init_one (struct pci_dev *pdev,
out:
/* Free any left over map structures */
- if (map) {
- kfree(map);
- }
+ kfree(map);
+
/* See if I have any map structures */
if (list_empty(&window->maps)) {
ichxrom_cleanup(window);