aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/ipaq-flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/ipaq-flash.c')
-rw-r--r--drivers/mtd/maps/ipaq-flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/ipaq-flash.c b/drivers/mtd/maps/ipaq-flash.c
index 71240181084..70b0e0b82c3 100644
--- a/drivers/mtd/maps/ipaq-flash.c
+++ b/drivers/mtd/maps/ipaq-flash.c
@@ -431,8 +431,7 @@ static void __exit ipaq_mtd_cleanup(void)
if (my_sub_mtd[i])
map_destroy(my_sub_mtd[i]);
}
- if (parsed_parts)
- kfree(parsed_parts);
+ kfree(parsed_parts);
}
}