mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
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>
This commit is contained in:
parent
ee6bf7e865
commit
f314cbe54b
@ -40,7 +40,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
|
|||||||
+ } else {
|
+ } else {
|
||||||
+ for (i = 0; i < numslots; i++) {
|
+ for (i = 0; i < numslots; i++) {
|
||||||
+ if (!strncmp(buf[i].name, "RedBoot", 8)) {
|
+ 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));
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user