summaryrefslogtreecommitdiff
path: root/src/arch/arm64/armv8/mmu.c
diff options
context:
space:
mode:
authorYuchen He <yuchenhe126@gmail.com>2023-01-28 00:03:31 +0100
committerFelix Singer <felixsinger@posteo.net>2023-02-08 02:03:11 +0000
commit5e7dc21c910ac0960e203044d1c513d50d27094b (patch)
tree05cfb72541ff2b7fa60292f2b55c76a4275c21ca /src/arch/arm64/armv8/mmu.c
parent5aed1a0d727163f6fa6dae97a8f852edb7a6fe19 (diff)
arch/arm64/armv8/mmu.c: Add a space before the ternary operator
Coding style requires a space before the question mark in ternary operators. Fix that. Found by the linter. Signed-off-by: Yuchen He <yuchenhe126@gmail.com> Change-Id: I894d6efd5673e9ad5f166ae59967a8d4bb42fb06 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72484 Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/arm64/armv8/mmu.c')
-rw-r--r--src/arch/arm64/armv8/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm64/armv8/mmu.c b/src/arch/arm64/armv8/mmu.c
index 72e5ccab52..61ca49ff2c 100644
--- a/src/arch/arm64/armv8/mmu.c
+++ b/src/arch/arm64/armv8/mmu.c
@@ -35,8 +35,8 @@ static uint64_t get_block_attr(unsigned long tag)
{
uint64_t attr;
- attr = (tag & MA_NS)? BLOCK_NS : 0;
- attr |= (tag & MA_RO)? BLOCK_AP_RO : BLOCK_AP_RW;
+ attr = (tag & MA_NS) ? BLOCK_NS : 0;
+ attr |= (tag & MA_RO) ? BLOCK_AP_RO : BLOCK_AP_RW;
attr |= BLOCK_ACCESS;
if (tag & MA_MEM) {