arch/arm/common: remove unnecessary conditional in up_mpuinit.c
Currently up_mpuinit.c has two conditionals which cover entire source code.
They are CONFIG_BUILD_PROTECTED and CONFIG_ARM_MPU.
But MPU could be used regardless of CONFIG_BUILD_PROTECTED for cache setting, RAM setting and so on.
Let's remove CONFIG_BUILD_PROTECTED conditional.
****************************************************************************/
#include <tinyara/config.h>
+
+#ifdef CONFIG_ARM_MPU
#include <tinyara/mpu.h>
#include <assert.h>
#include "up_mpuinit.h"
#include "cache.h"
-#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_ARM_MPU)
-
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -175,5 +175,4 @@ void up_mpuinitialize(void)
mpu_control(true, false, true);
}
-#endif /* CONFIG_BUILD_PROTECTED && CONFIG_ARM_MPU */
-
+#endif // CONFIG_ARM_MPU
