From 53d322f8aeff9da1c016802e0a5a5ef2ecfd1b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= Date: Tue, 25 Mar 2025 11:26:12 +0100 Subject: [PATCH] lib: sbi: sse: Remove superfluous parenthesis around MSTATUS_* values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason, there was a pair of useless parenthesis around MSTATUS_* value usage. Remove them. Signed-off-by: Clément Léger Reviewed-by: Andrew Jones --- lib/sbi/sbi_sse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c index 23cdcc8b..60368399 100644 --- a/lib/sbi/sbi_sse.c +++ b/lib/sbi/sbi_sse.c @@ -518,9 +518,9 @@ static unsigned long sse_interrupted_flags(unsigned long mstatus) { unsigned long hstatus, flags = 0; - if (mstatus & (MSTATUS_SPIE)) + if (mstatus & MSTATUS_SPIE) flags |= SBI_SSE_ATTR_INTERRUPTED_FLAGS_SSTATUS_SPIE; - if (mstatus & (MSTATUS_SPP)) + if (mstatus & MSTATUS_SPP) flags |= SBI_SSE_ATTR_INTERRUPTED_FLAGS_SSTATUS_SPP; if (misa_extension('H')) {