summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-07-30 20:34:20 +0200
committerTom Rini <trini@konsulko.com>2017-08-13 15:17:28 -0400
commita5981734a4412eae6ac536c8bd50d3add665352f (patch)
tree030458074ccfbeda04d9930e052f9d44ca43fa49 /arch/arm
parent6def7de37ba2aeb3d59c561b288537d8c3712c73 (diff)
downloadu-boot-a5981734a4412eae6ac536c8bd50d3add665352f.tar.gz
u-boot-a5981734a4412eae6ac536c8bd50d3add665352f.tar.bz2
u-boot-a5981734a4412eae6ac536c8bd50d3add665352f.zip
armv7m: mpu_config add missing break
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7m/mpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7m/mpu.c b/arch/arm/cpu/armv7m/mpu.c
index 31a243b49a..4622aa4826 100644
--- 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;