From d662510eea9dc09634413b3355b14498024567cb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 14 May 2007 13:45:41 +0000 Subject: [PATCH] brcm47xx-2.6: fix squashfs image partitioning problem SVN-Revision: 7224 --- .../brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c b/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c index e01654ca0b..8d4ebe42d8 100644 --- a/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c +++ b/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c @@ -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; } -- 2.30.2