projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6def7de
)
armv7m: mpu_config add missing break
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Sun, 30 Jul 2017 18:34:20 +0000
(20:34 +0200)
committer
Tom Rini
<trini@konsulko.com>
Sun, 13 Aug 2017 19:17:28 +0000
(15:17 -0400)
For DEVICE_NON_SHARED the newly assigned value of attr
is overwritten due to a missing break.
The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/arm/cpu/armv7m/mpu.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7m/mpu.c
b/arch/arm/cpu/armv7m/mpu.c
index 31a243b49adde86ff0ab8abe7370f6b6189b599f..4622aa48263f73a49f15fe46a077da39c64d4736 100644
(file)
--- a/
arch/arm/cpu/armv7m/mpu.c
+++ b/
arch/arm/cpu/armv7m/mpu.c
@@
-68,6
+68,7
@@
void mpu_config(struct mpu_region_config *reg_config)
break;
case DEVICE_NON_SHARED:
attr = (2 << TEX_SHIFT) | BUFFERABLE;
+ break;
default:
attr = 0; /* strongly ordered */
break;