summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/iq80310.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/iq80310.c')
-rw-r--r--drivers/mtd/maps/iq80310.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/iq80310.c b/drivers/mtd/maps/iq80310.c
index 558d014e7ac..2e7577492a2 100644
--- a/drivers/mtd/maps/iq80310.c
+++ b/drivers/mtd/maps/iq80310.c
@@ -103,8 +103,7 @@ static void __exit cleanup_iq80310(void)
if (mymtd) {
del_mtd_partitions(mymtd);
map_destroy(mymtd);
- if (parsed_parts)
- kfree(parsed_parts);
+ kfree(parsed_parts);
}
if (iq80310_map.virt)
iounmap((void *)iq80310_map.virt);