diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-09-04 15:27:45 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-09-04 15:27:45 +0000 |
| commit | b2d1c9f18facfb05621276f8831b2d4825d512d0 (patch) | |
| tree | 8b25b286ded92118cbc207b9d91aef684b142cf3 | |
| parent | 73537fad3492aeb6841cb9a8a81ba073196566b4 (diff) | |
| download | mtk-20170518-b2d1c9f18facfb05621276f8831b2d4825d512d0.zip mtk-20170518-b2d1c9f18facfb05621276f8831b2d4825d512d0.tar.gz mtk-20170518-b2d1c9f18facfb05621276f8831b2d4825d512d0.tar.bz2 | |
remove useless check
SVN-Revision: 4747
| -rw-r--r-- | openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 fcddb34..e5f803a 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); |
