aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/magicbox-2.6/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-09-04 15:27:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-09-04 15:27:45 +0000
commit4d33b11649a51e9e950e874453c438905e05a126 (patch)
tree676c02d770e177e1746dcccff6606542accabdaf /target/linux/magicbox-2.6/patches
parent456c9f3f1f179e9c8b2b9caf84d977f59473a2f1 (diff)
downloadupstream-4d33b11649a51e9e950e874453c438905e05a126.tar.gz
upstream-4d33b11649a51e9e950e874453c438905e05a126.tar.bz2
upstream-4d33b11649a51e9e950e874453c438905e05a126.zip
remove useless check
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/magicbox-2.6/patches')
-rw-r--r--target/linux/magicbox-2.6/patches/002-flash_map.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/magicbox-2.6/patches/002-flash_map.patch b/target/linux/magicbox-2.6/patches/002-flash_map.patch
index fcddb348c7..e5f803a144 100644
--- a/target/linux/magicbox-2.6/patches/002-flash_map.patch
+++ b/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);