1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 04:49:42 +02:00

remove useless check

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4747 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-09-04 15:27:45 +00:00
parent 1a4ad70944
commit 09b72bad7d

View File

@ -95,7 +95,7 @@ diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic
+ len != 4) + len != 4)
+ return -ENXIO; + return -ENXIO;
+ size += 0x40; /* header size of the uImage */ + size += 0x40; /* header size of the uImage */
+ if ((size > 0) && (size < 0x400000)) { + if (size < 0x400000) {
+ /* skip to next erase block */ + /* skip to next erase block */
+ if (size & (flash->erasesize - 1)) { + if (size & (flash->erasesize - 1)) {
+ size |= (flash->erasesize - 1); + size |= (flash->erasesize - 1);