]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/maps/integrator-flash.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6
[karo-tx-linux.git] / drivers / mtd / maps / integrator-flash.c
index 549614693ac8e87e2999eeb5b242ba7adf8ac51e..fe738fd8d6f89f068910a82cd636a4bb431eb4c9 100644 (file)
@@ -148,8 +148,7 @@ static int armflash_probe(struct device *_dev)
                        del_mtd_partitions(info->mtd);
                        map_destroy(info->mtd);
                }
-               if (info->parts)
-                       kfree(info->parts);
+               kfree(info->parts);
 
  no_device:
                iounmap(base);
@@ -176,8 +175,7 @@ static int armflash_remove(struct device *_dev)
                        del_mtd_partitions(info->mtd);
                        map_destroy(info->mtd);
                }
-               if (info->parts)
-                       kfree(info->parts);
+               kfree(info->parts);
 
                iounmap(info->map.virt);
                release_resource(info->res);