diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-14 16:10:40 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-14 16:12:12 +0200 |
commit | f314cbe54be4d90e748e18ae5e9fb00d5fd31c91 (patch) | |
tree | ac3b7cca4be9bdc1d9218cec67a8ed46807df64c /target/linux | |
parent | ee6bf7e865510ff1e0645b08bec65f8212ed70d4 (diff) | |
download | upstream-f314cbe54be4d90e748e18ae5e9fb00d5fd31c91.tar.gz upstream-f314cbe54be4d90e748e18ae5e9fb00d5fd31c91.tar.bz2 upstream-f314cbe54be4d90e748e18ae5e9fb00d5fd31c91.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>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/bcm63xx/patches-5.4/400-bcm963xx_flashmap.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/bcm63xx/patches-5.4/400-bcm963xx_flashmap.patch b/target/linux/bcm63xx/patches-5.4/400-bcm963xx_flashmap.patch index b80f096413..f57950b44a 100644 --- a/target/linux/bcm63xx/patches-5.4/400-bcm963xx_flashmap.patch +++ b/target/linux/bcm63xx/patches-5.4/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)); + } + } + } |