diff options
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 10:55:06 +0200 |
commit | a9eebf69f3787d2637ffb2353528d6c24f20769a (patch) | |
tree | 9b6acb89d821f8f3dbaacd1f846f893d629c8748 | |
parent | b9daff610e743048fec300c4d38fed5458f1b171 (diff) | |
download | upstream-a9eebf69f3787d2637ffb2353528d6c24f20769a.tar.gz upstream-a9eebf69f3787d2637ffb2353528d6c24f20769a.tar.bz2 upstream-a9eebf69f3787d2637ffb2353528d6c24f20769a.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)
-rw-r--r-- | target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch index c693ace363..378983df17 100644 --- a/target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-4.9/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)); + } + } + } |