brcm63xx: fix warning in Redboot code
authorFlorian Fainelli <florian@openwrt.org>
Mon, 27 Jan 2014 04:34:39 +0000 (04:34 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 27 Jan 2014 04:34:39 +0000 (04:34 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 39404

target/linux/brcm63xx/patches-3.10/400-bcm963xx_flashmap.patch

index 0bbb4e5289c64cf164340b3491d2487f8190dc4a..1594a063aa308324f35bc281bb29a9ce63e9e94a 100644 (file)
@@ -40,7 +40,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
 +      } else {
 +              for (i = 0; i < numslots; i++) {
 +                      if (!strncmp(buf[i].name, "RedBoot", 8)) {
-+                              fis_origin = (buf[i].flash_base & (master->size << 1) - 1);
++                              fis_origin = ((buf[i].flash_base & (master->size << 1)) - 1);
 +                      }
 +              }
 +      }