From b2d1c9f18facfb05621276f8831b2d4825d512d0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 4 Sep 2006 15:27:45 +0000 Subject: [PATCH] remove useless check SVN-Revision: 4747 --- openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch b/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch index fcddb348c7..e5f803a144 100644 --- a/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch +++ b/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch @@ -95,7 +95,7 @@ diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic + len != 4) + return -ENXIO; + size += 0x40; /* header size of the uImage */ -+ if ((size > 0) && (size < 0x400000)) { ++ if (size < 0x400000) { + /* skip to next erase block */ + if (size & (flash->erasesize - 1)) { + size |= (flash->erasesize - 1);