mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
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 <cleger@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
This commit is contained in:

committed by
Anup Patel

parent
41fb89cb29
commit
53d322f8ae
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user