aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/ichxrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/ichxrom.c')
-rw-r--r--drivers/mtd/maps/ichxrom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/maps/ichxrom.c b/drivers/mtd/maps/ichxrom.c
index e505207cd48..c5e2111ba14 100644
--- 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);