summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Léger <[email protected]>2025-03-25 11:26:12 +0100
committerAnup Patel <[email protected]>2025-03-27 18:16:19 +0530
commit53d322f8aeff9da1c016802e0a5a5ef2ecfd1b2a (patch)
tree2a1d788f16a3ff7ba051879858b85f1f71b22607
parent41fb89cb295e5b1c454c3e63cc382270b160c2b5 (diff)
lib: sbi: sse: Remove superfluous parenthesis around MSTATUS_* values
For some reason, there was a pair of useless parenthesis around MSTATUS_* value usage. Remove them. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Andrew Jones <[email protected]>
-rw-r--r--lib/sbi/sbi_sse.c4
1 files 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')) {