From e6eda13dd57a5e7b685639bad110f00987f05dd9 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 18 May 2007 09:29:39 +0000 Subject: Backport [7224] to the adm5120 flash map driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7270 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'target/linux/adm5120-2.6/files/drivers/mtd') diff --git a/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c b/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c index a35392674..a1737d702 100644 --- a/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c +++ b/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c @@ -391,10 +391,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size) } /* find and size rootfs */ - if (find_root(mtd,size,&adm5120_cfe_parts[2])==0) { - adm5120_cfe_parts[2].size = size - adm5120_cfe_parts[2].offset - - adm5120_cfe_parts[3].size; - } + find_root(mtd,size,&adm5120_cfe_parts[2]); + adm5120_cfe_parts[2].size = size - adm5120_cfe_parts[2].offset - adm5120_cfe_parts[3].size; return adm5120_cfe_parts; } -- cgit v1.2.3