]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/maps/bast-flash.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6
[karo-tx-linux.git] / drivers / mtd / maps / bast-flash.c
index 610dfcaa2c8635542bcc3d77372fb2d8704710d2..b7858eb935347acb767d2961de8896027b4b1674 100644 (file)
@@ -104,8 +104,7 @@ static int bast_flash_remove(struct device *dev)
                map_destroy(info->mtd);
        }
 
-       if (info->partitions)
-               kfree(info->partitions);
+       kfree(info->partitions);
 
        if (info->area) {
                release_resource(info->area);