Browse Source

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>
xypron.glpk@gmx.de 7 years ago
parent
commit
a5981734a4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/arm/cpu/armv7m/mpu.c

+ 1 - 0
arch/arm/cpu/armv7m/mpu.c

@@ -68,6 +68,7 @@ void mpu_config(struct mpu_region_config *reg_config)
 		break;
 		break;
 	case DEVICE_NON_SHARED:
 	case DEVICE_NON_SHARED:
 		attr = (2 << TEX_SHIFT) | BUFFERABLE;
 		attr = (2 << TEX_SHIFT) | BUFFERABLE;
+		break;
 	default:
 	default:
 		attr = 0; /* strongly ordered */
 		attr = 0; /* strongly ordered */
 		break;
 		break;