]> git.sur5r.net Git - u-boot/commitdiff
armv7m: mpu_config add missing break
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 30 Jul 2017 18:34:20 +0000 (20:34 +0200)
committerTom 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

index 31a243b49adde86ff0ab8abe7370f6b6189b599f..4622aa48263f73a49f15fe46a077da39c64d4736 100644 (file)
@@ -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;