brcm47xx-2.6: fix squashfs image partitioning problem
authorFelix Fietkau <nbd@openwrt.org>
Mon, 14 May 2007 13:45:41 +0000 (13:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 14 May 2007 13:45:41 +0000 (13:45 +0000)
SVN-Revision: 7224

target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c

index e01654ca0b2262b9bb2630630c0e8fde0c01a9a8..8d4ebe42d87b321c1ea2ca1f24f0fd050f0b3e08 100644 (file)
@@ -335,10 +335,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size)
        }
 
        /* find and size rootfs */
-       if (find_root(mtd,size,&bcm947xx_parts[2])==0) {
-               bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset - 
-                               bcm947xx_parts[3].size;
-       }
+       find_root(mtd,size,&bcm947xx_parts[2]);
+       bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset - bcm947xx_parts[3].size;
 
        return bcm947xx_parts;
 }