aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-4.14
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-18 09:12:30 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-18 09:51:18 +0200
commitb2c9f82eb4a86a0e4c9d053f012f1cace98f237b (patch)
tree24c2f8892f21199a6683bcd4c7229b4cfb395b4a /target/linux/brcm63xx/patches-4.14
parenta2a3ac9f51824af7172d604898f897eaf2bdf467 (diff)
downloadupstream-b2c9f82eb4a86a0e4c9d053f012f1cace98f237b.tar.gz
upstream-b2c9f82eb4a86a0e4c9d053f012f1cace98f237b.tar.bz2
upstream-b2c9f82eb4a86a0e4c9d053f012f1cace98f237b.zip
bcm63xx: redboot: fix warning
drivers/mtd/parsers/redboot.c: In function 'parse_redboot_partitions': drivers/mtd/parsers/redboot.c:194:59: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] fis_origin = (buf[i].flash_base & (master->size << 1) - 1); ~~~~~~~~~~~~~~~~~~~~^~~ Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> (cherry picked from commit f314cbe54be4d90e748e18ae5e9fb00d5fd31c91)
Diffstat (limited to 'target/linux/brcm63xx/patches-4.14')
-rw-r--r--target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch
index c693ace363..378983df17 100644
--- a/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch
+++ b/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch
@@ -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));
+ }
+ }
+ }