1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-04 18:21:52 +02:00

remove useless check

SVN-Revision: 4747
This commit is contained in:
Felix Fietkau 2006-09-04 15:27:45 +00:00
parent 73537fad34
commit b2d1c9f18f

@ -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);