remove useless check
SVN-Revision: 4747
This commit is contained in:
parent
73537fad34
commit
b2d1c9f18f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue