forked from Mirrors/opensbi
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;
|
unsigned long hstatus, flags = 0;
|
||||||
|
|
||||||
if (mstatus & (MSTATUS_SPIE))
|
if (mstatus & MSTATUS_SPIE)
|
||||||
flags |= SBI_SSE_ATTR_INTERRUPTED_FLAGS_SSTATUS_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;
|
flags |= SBI_SSE_ATTR_INTERRUPTED_FLAGS_SSTATUS_SPP;
|
||||||
|
|
||||||
if (misa_extension('H')) {
|
if (misa_extension('H')) {
|
||||||
|
Reference in New Issue
Block a user