summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/lubbock-flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/lubbock-flash.c')
-rw-r--r--drivers/mtd/maps/lubbock-flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/lubbock-flash.c b/drivers/mtd/maps/lubbock-flash.c
index 2337e0c46750..2b4c5058787d 100644
--- a/drivers/mtd/maps/lubbock-flash.c
+++ b/drivers/mtd/maps/lubbock-flash.c
@@ -158,8 +158,7 @@ static void __exit cleanup_lubbock(void)
if (lubbock_maps[i].cached)
iounmap(lubbock_maps[i].cached);
- if (parsed_parts[i])
- kfree(parsed_parts[i]);
+ kfree(parsed_parts[i]);
}
}