remove useless check
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 Sep 2006 15:27:45 +0000 (15:27 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 Sep 2006 15:27:45 +0000 (15:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4747 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/magicbox-2.6/patches/002-flash_map.patch

index fcddb348c72fc2b03a48231f42a61025b704c41e..e5f803a14438ffc4e90b1805df1a99b739c0b440 100644 (file)
@@ -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 */
 +                      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);
 +                      /* skip to next erase block */
 +                      if (size & (flash->erasesize - 1)) {
 +                              size |= (flash->erasesize - 1);